Moves global scope out of shared/util.

This commit is contained in:
Yury Delendik 2017-08-22 17:06:11 -05:00
parent 81172b571f
commit 57bc3296f4
9 changed files with 31 additions and 18 deletions

View file

@ -21,11 +21,7 @@ if ((typeof PDFJSDev === 'undefined' ||
!PDFJSDev.test('FIREFOX || MOZCENTRAL || CHROME')) &&
(typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked)) {
var globalScope =
(typeof window !== 'undefined' && window.Math === Math) ? window :
(typeof global !== 'undefined' && global.Math === Math) ? global :
(typeof self !== 'undefined' && self.Math === Math) ? self :
(typeof this !== 'undefined' && this.Math === Math) ? this : {};
var globalScope = require('./global_scope');
var userAgent = (typeof navigator !== 'undefined' && navigator.userAgent) || '';
var isAndroid = /Android/.test(userAgent);