Skip to content

Commit

Permalink
Merge pull request mozilla#7315 from McGiogen/bug-usestrict-compatibi…
Browse files Browse the repository at this point in the history
…lityjs

Solving issue mozilla#7307, 'use strict' context in compatibility.js
  • Loading branch information
yurydelendik committed May 12, 2016
2 parents b261203 + 1c96cb8 commit 1c04335
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -591,3 +592,5 @@ if (typeof PDFJS === 'undefined') {
configurable: true
});
})();

}).call((typeof window === 'undefined') ? this : window);

0 comments on commit 1c04335

Please sign in to comment.