From d76f299b6bda37a09a838e3c1cd8d859237da011 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 20 Apr 2017 17:15:02 +0200 Subject: [PATCH] [Firefox addon] Remove the `window.FirefoxCom` hack from `web/viewer.js`, since it was made redundant by the `setExternalLocalizerServices` re-factoring (PR 7202 follow-up) After PR 7202, there are no remaining references to `FirefoxCom` in the `/extensions/firefox/tools/l10n.js` file. --- web/viewer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/viewer.js b/web/viewer.js index 92b8edef0..01f27980f 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -41,8 +41,7 @@ if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('PRODUCTION')) { } if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('FIREFOX || MOZCENTRAL')) { - // FIXME the l10n.js file in the Firefox extension needs global FirefoxCom. - window.FirefoxCom = require('./firefoxcom.js').FirefoxCom; + require('./firefoxcom.js'); require('./firefox_print_service.js'); } if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('GENERIC')) {