mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
PDF: set isEvalSupported to false
`eval()` would be blocked by CSP and thus not supported
This commit is contained in:
@@ -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' } }
|
||||||
|
|||||||
Reference in New Issue
Block a user