Merge pull request #8322 from Snuffleupagus/rm-window-FirefoxCom

[Firefox addon] Remove the `window.FirefoxCom` hack from `web/viewer.js`, since it was made redunant by the `setExternalLocalizerServices` refactoring (PR 7202 follow-up)
This commit is contained in:
Tim van der Meij 2017-04-21 00:15:10 +02:00 committed by GitHub
commit 96cb599e93

View File

@ -41,8 +41,7 @@ if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('PRODUCTION')) {
} }
if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('FIREFOX || MOZCENTRAL')) { if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('FIREFOX || MOZCENTRAL')) {
// FIXME the l10n.js file in the Firefox extension needs global FirefoxCom. require('./firefoxcom.js');
window.FirefoxCom = require('./firefoxcom.js').FirefoxCom;
require('./firefox_print_service.js'); require('./firefox_print_service.js');
} }
if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('GENERIC')) { if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('GENERIC')) {