mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 08:38:06 +02:00
Fallback to plain object for globalScope.
This commit is contained in:
parent
a1d88d8e2e
commit
da44d10af1
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ if ((typeof PDFJSDev === 'undefined' ||
|
|||
var globalScope =
|
||||
(typeof window !== 'undefined' && window.Math === Math) ? window :
|
||||
(typeof global !== 'undefined' && global.Math === Math) ? global :
|
||||
(typeof self !== 'undefined' && self.Math === Math) ? self : this;
|
||||
(typeof self !== 'undefined' && self.Math === Math) ? self :
|
||||
(typeof this !== 'undefined' && this.Math === Math) ? this : {};
|
||||
|
||||
var userAgent = (typeof navigator !== 'undefined' && navigator.userAgent) || '';
|
||||
var isAndroid = /Android/.test(userAgent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue