mirror of
https://github.com/zadam/trilium.git
synced 2026-03-22 16:23:50 +01:00
add typings
This commit is contained in:
parent
d52f529b24
commit
d4bc1ec444
@ -42,7 +42,7 @@ async function main() {
|
||||
};
|
||||
|
||||
function configurePdfViewerOptions() {
|
||||
const pdfOptionsHandler = (event) => {
|
||||
const pdfOptionsHandler = (event: CustomEvent) => {
|
||||
if (event.detail?.source === window && window.PDFViewerApplicationOptions) {
|
||||
window.PDFViewerApplicationOptions.set("disablePreferences", true);
|
||||
window.PDFViewerApplicationOptions.set("enableHighlightFloatingButton", true);
|
||||
|
||||
1
packages/pdfjs-viewer/src/typings.d.ts
vendored
1
packages/pdfjs-viewer/src/typings.d.ts
vendored
@ -46,5 +46,6 @@ declare global {
|
||||
};
|
||||
store: ViewHistory;
|
||||
};
|
||||
PDFViewerApplicationOptions?: { set(name: string, value: any): void; }
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user