| 1 | /** |
| 2 | * Printing in WebKit browsers (Safari, and every browser on iOS) doesn't reliably |
| 3 | * honor the `@page` size and margins Slidev sets, and their print dialog doesn't |
| 4 | * offer the margin options our tips refer to, so the exported PDF may not match |
| 5 | * the slides. See https://github.com/slidevjs/slidev/issues/2013 |
| 6 | */ |
| 7 | export function isPdfExportSupported(userAgent: string) { |
| 8 | const isWebKit = /AppleWebKit\//.test(userAgent) && !/Chrom(?:e|ium)\//.test(userAgent) |
| 9 | return !isWebKit |
| 10 | } |
| 11 |