File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ var scriptHost = scriptElements[scriptElements.length-1].getAttribute("src").rep
8
8
// Else, get the url from the <script> this file was called with.
9
9
var urlParts = url . parse ( typeof __resourceQuery === "string" && __resourceQuery ?
10
10
__resourceQuery . substr ( 1 ) :
11
- ( scriptHost ? scriptHost : "/" )
11
+ ( scriptHost ? scriptHost : "/" ) , false , true
12
12
) ;
13
13
14
14
var sock = null ;
@@ -63,7 +63,7 @@ var newConnection = function() {
63
63
auth : urlParts . auth ,
64
64
hostname : ( urlParts . hostname === '0.0.0.0' ) ? window . location . hostname : urlParts . hostname ,
65
65
port : urlParts . port ,
66
- pathname : urlParts . path === '/' ? "/sockjs-node" : urlParts . path
66
+ pathname : urlParts . path == null || urlParts . path == = '/' ? "/sockjs-node" : urlParts . path
67
67
} ) ) ;
68
68
69
69
sock . onclose = function ( ) {
You can’t perform that action at this time.
0 commit comments