Skip to content

Commit

Permalink
Improve browser check closes mozilla#68
Browse files Browse the repository at this point in the history
  • Loading branch information
HaNdTriX committed Jan 10, 2018
1 parent 49ce6ef commit 5371a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser-polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";

if (typeof browser === "undefined") {
if (typeof window.browser === "undefined") {
// Wrapping the bulk of this polyfill in a one-time-use function is a minor
// optimization for Firefox. Since Spidermonkey does not fully parse the
// contents of a function until the first time it's called, and since it will
Expand Down

0 comments on commit 5371a6b

Please sign in to comment.