Skip to content

Commit 22800a4

Browse files
committed
fix ReferenceError in browsers
Signed-off-by: Dmitry Kryuchkov <[email protected]>
1 parent 5411097 commit 22800a4

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)