diff --git a/src/views/PDFView.vue b/src/views/PDFView.vue index 1e84cc41..ee1f3dd2 100644 --- a/src/views/PDFView.vue +++ b/src/views/PDFView.vue @@ -155,7 +155,7 @@ export default { PDFViewerApplicationOptions.set('sandboxBundleSrc', this.getViewerTemplateParameter('sandbox')) PDFViewerApplicationOptions.set('enablePermissions', true) PDFViewerApplicationOptions.set('imageResourcesPath', this.getViewerTemplateParameter('imageresourcespath')) - PDFViewerApplicationOptions.set('enableScripting', this.getViewerTemplateParameter('enableScripting') === true) + PDFViewerApplicationOptions.set('enableScripting', this.getViewerTemplateParameter('enablescripting') === 'true') const language = getLanguage() const supportedLanguages = SUPPORTED_LANGUAGES diff --git a/templates/viewer.php b/templates/viewer.php index e7b85be7..7dbb6d04 100644 --- a/templates/viewer.php +++ b/templates/viewer.php @@ -40,7 +40,7 @@ -->