Skip to content

Commit

Permalink
Check if window is defined before assigning to it
Browse files Browse the repository at this point in the history
  • Loading branch information
codeclown authored Oct 26, 2016
1 parent c864b70 commit 7b18311
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gator.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,5 +362,7 @@
module.exports = Gator;
}

window.Gator = Gator;
if(window) {
window.Gator = Gator;
}
}) ();

0 comments on commit 7b18311

Please sign in to comment.