Moves mozPrintCallback specific code to firefox_printservice.js

This commit is contained in:
Yury Delendik 2016-10-06 16:46:30 -05:00
parent f8bd3d4473
commit 24a7a58da7
8 changed files with 213 additions and 118 deletions

View file

@ -175,7 +175,8 @@ function webViewerLoad() {
// Ensure that src/main_loader.js has loaded all the necessary dependencies
// *before* the viewer loads, to prevent issues in browsers relying on e.g.
// the Promise/URL polyfill in src/shared/util.js (fixes issue 7448).
require(['pdfjs-web/app', 'mozPrintCallback_polyfill.js'], function (web) {
require(['pdfjs-web/app', 'pdfjs-web/firefox_print_service',
'pdfjs-web/mozPrintCallback_polyfill'], function (web) {
window.PDFViewerApplication = web.PDFViewerApplication;
web.PDFViewerApplication.run(config);
});