mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Merge pull request #932 from NativeScript/browserify-add-global
Add global object as another fallback.
This commit is contained in:
@@ -48,5 +48,6 @@ function build(fn){
|
||||
|
||||
function glob(){
|
||||
return 'typeof self !== "undefined" ? self : '
|
||||
+ 'typeof window !== "undefined" ? window : {}';
|
||||
+ 'typeof window !== "undefined" ? window : '
|
||||
+ 'typeof global !== "undefined" ? global : {}';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user