Skip to content

Commit

Permalink
Merge pull request mozilla#8322 from Snuffleupagus/rm-window-FirefoxCom
Browse files Browse the repository at this point in the history
[Firefox addon] Remove the `window.FirefoxCom` hack from `web/viewer.js`, since it was made redunant by the `setExternalLocalizerServices` refactoring (PR 7202 follow-up)
  • Loading branch information
timvandermeij authored Apr 20, 2017
2 parents 80e1c47 + f004c7b commit e46010e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit e46010e

Please sign in to comment.