We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1f76a9f + bd25113 commit 34618e7Copy full SHA for 34618e7
web/app.js
@@ -2003,12 +2003,12 @@ const PDFViewerApplication = {
2003
}
2004
window.addEventListener("message", event => {
2005
const origins = [
2006
- /^http:\/\/localhost:5000.*/,
+ /^http:\/\/localhost:(5000|4200).*$/,
2007
/^https:\/\/.*\.herokuapp\.com$/,
2008
/^https:\/\/.*\.sharinpix\.com$/,
2009
];
2010
const originAllowed = origins.some(origin => origin.test(event.origin));
2011
- if (originAllowed && event.data.type === "image-download") {
+ if (originAllowed && event.data.type === "enable-pdf-download") {
2012
const printButton = document.getElementById("printButton");
2013
const secondaryPrintButton = document.getElementById("secondaryPrint");
2014
printButton?.classList.remove("hidden");
0 commit comments