mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Moves global scope out of shared/util.
This commit is contained in:
parent
81172b571f
commit
57bc3296f4
9 changed files with 31 additions and 18 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue