Skip to content

Commit

Permalink
If window is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsimper committed Nov 14, 2014
1 parent bb62cd6 commit 5508cb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/crafty.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ require('./time');
require('./version');
require('./viewport');

window.Crafty = Crafty;
if(window) window.Crafty = Crafty;

module.exports = Crafty;

0 comments on commit 5508cb1

Please sign in to comment.