mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Set isEvalSupported to false when loading a PDF document (#18444)
GitOrigin-RevId: 394d63571d83302b91b5719389adf49155218bc7
This commit is contained in:
+1
-1
@@ -143,7 +143,7 @@ export class GraphicsWidget extends WidgetType {
|
||||
return
|
||||
}
|
||||
|
||||
const pdf = await PDFJS.getDocument(url).promise
|
||||
const pdf = await PDFJS.getDocument({ url, isEvalSupported: false }).promise
|
||||
const page = await pdf.getPage(1)
|
||||
|
||||
// bail out if loading the PDF took too long
|
||||
|
||||
Reference in New Issue
Block a user