Added context to compatibility.js to have 'use strict' directive in our context only

This commit is contained in:
Gioele Masini 2016-05-11 11:21:56 +02:00
parent c1c199d702
commit 1c96cb8862

View File

@ -14,6 +14,7 @@
*/
/* globals VBArray, PDFJS */
(function compatibilityWrapper() {
'use strict';
// Initializing PDFJS global object here, it case if we need to change/disable
@ -591,3 +592,5 @@ if (typeof PDFJS === 'undefined') {
configurable: true
});
})();
}).call((typeof window === 'undefined') ? this : window);