Skip to content

Commit 2ee0a4b

Browse files
committed
make usePdfJs non-optional
1 parent ef4a732 commit 2ee0a4b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/content-handlers/iiif/extensions/uv-pdf-extension/config/Config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515

1616
type PDFCenterPanelOptions = CenterPanelOptions & {
1717
/** Determines if PDF.js should be used for PDF rendering */
18-
usePdfJs?: boolean;
18+
usePdfJs: boolean;
1919
};
2020

2121
type PDFCenterPanelContent = CenterPanelContent & {};

src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"theme": "uv-en-GB-theme",
4444
"tokenStorage": "session",
4545
"useArrowKeysToNavigate": false,
46-
"usePdfJs": true,
4746
"zoomToSearchResultEnabled": true
4847
},
4948
"modules": {
@@ -180,7 +179,8 @@
180179
"titleEnabled": false,
181180
"subtitleEnabled": true,
182181
"mostSpecificRequiredStatement": true,
183-
"requiredStatementEnabled": true
182+
"requiredStatementEnabled": true,
183+
"usePdfJs": true
184184
},
185185
"content": {
186186
"attribution": "$attribution"

0 commit comments

Comments
 (0)