Skip to content

Commit a6c9bc6

Browse files
committed
Cosmetic - Use local copy of window object
1 parent 5ab8769 commit a6c9bc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sockjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
var SockJS = function(url, dep_protocols_whitelist, options) {
10-
if (this === window) {
10+
if (this === _window) {
1111
// makes `new` optional
1212
return new SockJS(url, dep_protocols_whitelist, options);
1313
}

0 commit comments

Comments
 (0)