From 943a8c03aaa565a7bd35ca25bdac66248a8b8a9f Mon Sep 17 00:00:00 2001 From: Kirill Nagaitsev Date: Fri, 10 May 2019 14:47:43 -0500 Subject: [PATCH] removed != sign --- client-src/default/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client-src/default/index.js b/client-src/default/index.js index b29c6c076f..4b9a3a0e19 100644 --- a/client-src/default/index.js +++ b/client-src/default/index.js @@ -225,7 +225,12 @@ if ( let sockHost = hostname; let sockPath = '/sockjs-node'; let sockPort = urlParts.port; -if (urlParts.path != null && urlParts.path !== '/') { +// eslint-disable-next-line no-undefined +if ( + urlParts.path !== null && + urlParts.path !== undefined && + urlParts.path !== '/' +) { const parsedQuery = querystring.parse(urlParts.path); // all of these sock url params are optionally passed in through // __resourceQuery, so we need to fall back to the default if