Skip to content

Commit 3033508

Browse files
committed
Merge pull request #476 from xelibrion/master
Common JS package manager support breaks ui-router in browsers
2 parents 5411097 + 22800a4 commit 3033508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = function (grunt) {
2727
options: {
2828
banner: '<%= meta.banner %>\n\n'+
2929
'/* commonjs package manager support (eg componentjs) */\n'+
30-
'if (module && exports && module.exports === exports){\n'+
30+
'if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){\n'+
3131
' module.exports = \'ui.router\';\n'+
3232
'}\n\n'+
3333
'(function (window, angular, undefined) {\n',

0 commit comments

Comments
 (0)