Remove the enableScripting
-parameter from the component examples (PR 13816 follow-up)
This became unnecessary with PDF.js version `2.11.338`, which was relasesed almost a year ago and is no longer supported.
This commit is contained in:
parent
bcdf161967
commit
2f3417a590
@ -66,7 +66,6 @@ const pdfViewer = new pdfjsViewer.PDFViewer({
|
|||||||
linkService: pdfLinkService,
|
linkService: pdfLinkService,
|
||||||
findController: pdfFindController,
|
findController: pdfFindController,
|
||||||
scriptingManager: pdfScriptingManager,
|
scriptingManager: pdfScriptingManager,
|
||||||
enableScripting: true, // Only necessary in PDF.js version 2.10.377 and below.
|
|
||||||
});
|
});
|
||||||
pdfLinkService.setViewer(pdfViewer);
|
pdfLinkService.setViewer(pdfViewer);
|
||||||
pdfScriptingManager.setViewer(pdfViewer);
|
pdfScriptingManager.setViewer(pdfViewer);
|
||||||
|
@ -66,7 +66,6 @@ const pdfSinglePageViewer = new pdfjsViewer.PDFSinglePageViewer({
|
|||||||
linkService: pdfLinkService,
|
linkService: pdfLinkService,
|
||||||
findController: pdfFindController,
|
findController: pdfFindController,
|
||||||
scriptingManager: pdfScriptingManager,
|
scriptingManager: pdfScriptingManager,
|
||||||
enableScripting: true, // Only necessary in PDF.js version 2.10.377 and below.
|
|
||||||
});
|
});
|
||||||
pdfLinkService.setViewer(pdfSinglePageViewer);
|
pdfLinkService.setViewer(pdfSinglePageViewer);
|
||||||
pdfScriptingManager.setViewer(pdfSinglePageViewer);
|
pdfScriptingManager.setViewer(pdfSinglePageViewer);
|
||||||
|
Loading…
Reference in New Issue
Block a user