Skip to content

Commit bd25113

Browse files
committed
Rename post-message event
1 parent 4594ff6 commit bd25113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2008,7 +2008,7 @@ const PDFViewerApplication = {
20082008
/^https:\/\/.*\.sharinpix\.com$/,
20092009
];
20102010
const originAllowed = origins.some(origin => origin.test(event.origin));
2011-
if (originAllowed && event.data.type === "image-download") {
2011+
if (originAllowed && event.data.type === "enable-pdf-download") {
20122012
const printButton = document.getElementById("printButton");
20132013
const secondaryPrintButton = document.getElementById("secondaryPrint");
20142014
printButton?.classList.remove("hidden");

0 commit comments

Comments
 (0)