mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 15:48:06 +02:00
Added context to compatibility.js to have 'use strict' directive in our context only
This commit is contained in:
parent
c1c199d702
commit
1c96cb8862
1 changed files with 4 additions and 1 deletions
|
@ -14,7 +14,8 @@
|
|||
*/
|
||||
/* globals VBArray, PDFJS */
|
||||
|
||||
'use strict';
|
||||
(function compatibilityWrapper() {
|
||||
'use strict';
|
||||
|
||||
// Initializing PDFJS global object here, it case if we need to change/disable
|
||||
// some PDF.js features, e.g. range requests
|
||||
|
@ -591,3 +592,5 @@ if (typeof PDFJS === 'undefined') {
|
|||
configurable: true
|
||||
});
|
||||
})();
|
||||
|
||||
}).call((typeof window === 'undefined') ? this : window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue