mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
parent
1c869906c8
commit
0c21ebf9f3
1 changed files with 7 additions and 1 deletions
|
@ -202,7 +202,9 @@
|
|||
return;
|
||||
}
|
||||
ensureOverlay().then(function () {
|
||||
OverlayManager.open('printServiceOverlay');
|
||||
if (activeService) {
|
||||
OverlayManager.open('printServiceOverlay');
|
||||
}
|
||||
});
|
||||
|
||||
try {
|
||||
|
@ -210,6 +212,10 @@
|
|||
} finally {
|
||||
if (!activeService) {
|
||||
console.error('Expected print service to be initialized.');
|
||||
if (OverlayManager.active === 'printServiceOverlay') {
|
||||
OverlayManager.close('printServiceOverlay');
|
||||
}
|
||||
return;
|
||||
}
|
||||
var activeServiceOnEntry = activeService;
|
||||
activeService.renderPages().then(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue