PDF: set isEvalSupported to false

`eval()` would be blocked by CSP and thus not supported
This commit is contained in:
John Factotum
2024-09-28 19:17:12 +08:00
parent 45d67a0db3
commit 3409674e66
+1
View File
@@ -110,6 +110,7 @@ export const makePDF = async file => {
data, data,
cMapUrl: pdfjsPath('cmaps/'), cMapUrl: pdfjsPath('cmaps/'),
standardFontDataUrl: pdfjsPath('standard_fonts/'), standardFontDataUrl: pdfjsPath('standard_fonts/'),
isEvalSupported: false,
}).promise }).promise
const book = { rendition: { layout: 'pre-paginated' } } const book = { rendition: { layout: 'pre-paginated' } }