mirror of
https://github.com/zadam/trilium.git
synced 2026-03-22 16:23:50 +01:00
disable preferences warning
This commit is contained in:
parent
6b02ad8421
commit
53b0aafb98
@ -22,6 +22,7 @@ async function main() {
|
||||
window.parent.addEventListener('webviewerloaded', (event) => {
|
||||
const iframeWindow = event.detail.source;
|
||||
if (iframeWindow.PDFViewerApplicationOptions) {
|
||||
iframeWindow.PDFViewerApplicationOptions.set("disablePreferences", true);
|
||||
iframeWindow.PDFViewerApplicationOptions.set("enableHighlightFloatingButton", true);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user