Skip to content

Commit 165847f

Browse files
committed
Update browser-wrapper.js
using true global object
1 parent c7c716c commit 165847f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

includes/browser-wrapper.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
(function(modules){
1+
(function(modules, global){
22
var cache = {}, require = function(id){
33
var module = cache[id]
44
if (!module){
55
module = cache[id] = {}
66
var exports = module.exports = {}
7-
modules[id].call(exports, require, module, exports, typeof window == 'undefined' ? {} : window)
7+
modules[id].call(exports, require, module, exports, global)
88
}
99
return module.exports
1010
}
11-
})({})
11+
})({}, this)

0 commit comments

Comments
 (0)