Skip to content

Commit

Permalink
Use a safer conditional when pushing $ to global object
Browse files Browse the repository at this point in the history
  • Loading branch information
waxlamp committed May 9, 2016
1 parent f7897a3 commit 7e87176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ module.exports = $.extend({
gui: require('./ui')
}, require('./registry'));

if (!window.$) {
if (window && !window.$) {
window.$ = $;
}

0 comments on commit 7e87176

Please sign in to comment.