Skip to content

Commit

Permalink
Merge pull request #874 from pbassut/master
Browse files Browse the repository at this point in the history
Fix(main): tests weren't running without requireJS
  • Loading branch information
JoelParke committed Sep 12, 2015
2 parents 94ddf30 + 5030e1e commit e40874a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ textAngular.run([function(){
window.rangy = require('rangy');
window.rangy.saveSelection = require('rangy/lib/rangy-selectionsaverestore');
});
} else if (typeof module !== 'undefined' && typeof exports === 'object') {
} else if (typeof require ==='function' && typeof module !== 'undefined' && typeof exports === 'object') {
// Node/CommonJS style
window.rangy = require('rangy');
window.rangy.saveSelection = require('rangy/lib/rangy-selectionsaverestore');
Expand Down

0 comments on commit e40874a

Please sign in to comment.