chore(pdfjs): address origin concerns

This commit is contained in:
Elian Doran 2025-12-30 01:27:05 +02:00
parent a1ebdc3004
commit 2304407986
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);
}