From 2ee0a4bf2afdd4cbf48d51c15d18f792f29f1990 Mon Sep 17 00:00:00 2001 From: Edward Silverton Date: Fri, 24 Nov 2023 17:02:36 +0000 Subject: [PATCH] make usePdfJs non-optional --- .../iiif/extensions/uv-pdf-extension/config/Config.ts | 2 +- .../iiif/extensions/uv-pdf-extension/config/config.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content-handlers/iiif/extensions/uv-pdf-extension/config/Config.ts b/src/content-handlers/iiif/extensions/uv-pdf-extension/config/Config.ts index 9f9e6720c..116e1e3a9 100644 --- a/src/content-handlers/iiif/extensions/uv-pdf-extension/config/Config.ts +++ b/src/content-handlers/iiif/extensions/uv-pdf-extension/config/Config.ts @@ -15,7 +15,7 @@ import { type PDFCenterPanelOptions = CenterPanelOptions & { /** Determines if PDF.js should be used for PDF rendering */ - usePdfJs?: boolean; + usePdfJs: boolean; }; type PDFCenterPanelContent = CenterPanelContent & {}; diff --git a/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json index 3e3508c7e..c42c16d3c 100644 --- a/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json @@ -43,7 +43,6 @@ "theme": "uv-en-GB-theme", "tokenStorage": "session", "useArrowKeysToNavigate": false, - "usePdfJs": true, "zoomToSearchResultEnabled": true }, "modules": { @@ -180,7 +179,8 @@ "titleEnabled": false, "subtitleEnabled": true, "mostSpecificRequiredStatement": true, - "requiredStatementEnabled": true + "requiredStatementEnabled": true, + "usePdfJs": true }, "content": { "attribution": "$attribution"