We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1bc5cef + b3d7d1c commit f9ce22cCopy full SHA for f9ce22c
web/app.js
@@ -1225,9 +1225,6 @@ const PDFViewerApplication = {
1225
});
1226
1227
pagesPromise.then(async () => {
1228
- if (!this.supportsPrinting) {
1229
- return;
1230
- }
1231
const [openAction, javaScript] = await Promise.all([
1232
openActionPromise,
1233
pdfDocument.getJavaScript(),
@@ -1259,6 +1256,9 @@ const PDFViewerApplication = {
1259
1256
}
1260
1257
1261
1258
+ if (!this.supportsPrinting) {
+ return;
+ }
1262
if (triggerAutoPrint) {
1263
setTimeout(function() {
1264
window.print();
0 commit comments