Skip to content

Commit

Permalink
await zoteroPrint()
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek committed May 3, 2024
1 parent 5acfb7b commit db912ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pdf/pdf-print-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ class PrintTask {
return;
}
if (typeof zoteroPrint !== 'undefined') {
zoteroPrint();
zoteroPrint().then(resolve);
}
else {
window._print();
// Delay promise resolution in case print() was not synchronous.
setTimeout(resolve, 20); // Tidy-up.
}
// Delay promise resolution in case print() was not synchronous.
setTimeout(resolve, 20); // Tidy-up.
}, 0);
});
}
Expand Down

0 comments on commit db912ca

Please sign in to comment.