Skip to content

Commit

Permalink
Fix Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
ExE-Boss committed Jun 17, 2018
1 parent a21cee5 commit ce7cfd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/browser-polyfill.js
Expand Up @@ -15,6 +15,9 @@
* @returns {boolean} True if the value for obj[key] is defined.
*/
const isDefined = (object, key) => {
if (object === window && window !== this) {
object = this;
}
if (typeof object !== "object" || object === null) {
return false;
}
Expand Down

0 comments on commit ce7cfd6

Please sign in to comment.