Skip to content

Commit 943a8c0

Browse files
committed
removed != sign
1 parent c7a3c04 commit 943a8c0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client-src/default/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,12 @@ if (
225225
let sockHost = hostname;
226226
let sockPath = '/sockjs-node';
227227
let sockPort = urlParts.port;
228-
if (urlParts.path != null && urlParts.path !== '/') {
228+
// eslint-disable-next-line no-undefined
229+
if (
230+
urlParts.path !== null &&
231+
urlParts.path !== undefined &&
232+
urlParts.path !== '/'
233+
) {
229234
const parsedQuery = querystring.parse(urlParts.path);
230235
// all of these sock url params are optionally passed in through
231236
// __resourceQuery, so we need to fall back to the default if

0 commit comments

Comments
 (0)