mirror of
https://github.com/zadam/trilium.git
synced 2025-12-31 03:34:23 +01:00
chore(pdfjs): address origin concerns
This commit is contained in:
parent
a1ebdc3004
commit
2304407986
@ -47,7 +47,7 @@ function manageSave() {
|
||||
window.parent.postMessage({
|
||||
type: "pdfjs-viewer-document-modified",
|
||||
data: data
|
||||
}, "*");
|
||||
}, window.location.origin);
|
||||
storage.resetModified();
|
||||
timeout = null;
|
||||
}, 2_000);
|
||||
|
||||
@ -40,7 +40,7 @@ function saveHistory(value: string) {
|
||||
window.parent.postMessage({
|
||||
type: "pdfjs-viewer-save-view-history",
|
||||
data: JSON.stringify(history)
|
||||
}, "*");
|
||||
}, window.location.origin);
|
||||
saveTimeout = null;
|
||||
}, 2_000);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user