mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #11700 from Snuffleupagus/viewer-JS-warn
Ensure that the JavaScript-warning is always displayed, in the viewer, regardless of browser printing support
This commit is contained in:
commit
f9ce22c08a
1 changed files with 3 additions and 3 deletions
|
@ -1225,9 +1225,6 @@ const PDFViewerApplication = {
|
|||
});
|
||||
|
||||
pagesPromise.then(async () => {
|
||||
if (!this.supportsPrinting) {
|
||||
return;
|
||||
}
|
||||
const [openAction, javaScript] = await Promise.all([
|
||||
openActionPromise,
|
||||
pdfDocument.getJavaScript(),
|
||||
|
@ -1259,6 +1256,9 @@ const PDFViewerApplication = {
|
|||
}
|
||||
}
|
||||
|
||||
if (!this.supportsPrinting) {
|
||||
return;
|
||||
}
|
||||
if (triggerAutoPrint) {
|
||||
setTimeout(function() {
|
||||
window.print();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue