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:
Jonas Jenwald 2022-09-16 10:19:05 +02:00
parent bcdf161967
commit 2f3417a590
2 changed files with 0 additions and 2 deletions

View File

@ -66,7 +66,6 @@ const pdfViewer = new pdfjsViewer.PDFViewer({
linkService: pdfLinkService,
findController: pdfFindController,
scriptingManager: pdfScriptingManager,
enableScripting: true, // Only necessary in PDF.js version 2.10.377 and below.
});
pdfLinkService.setViewer(pdfViewer);
pdfScriptingManager.setViewer(pdfViewer);

View File

@ -66,7 +66,6 @@ const pdfSinglePageViewer = new pdfjsViewer.PDFSinglePageViewer({
linkService: pdfLinkService,
findController: pdfFindController,
scriptingManager: pdfScriptingManager,
enableScripting: true, // Only necessary in PDF.js version 2.10.377 and below.
});
pdfLinkService.setViewer(pdfSinglePageViewer);
pdfScriptingManager.setViewer(pdfSinglePageViewer);