Skip to content

Commit

Permalink
removed != sign
Browse files Browse the repository at this point in the history
  • Loading branch information
knagaitsev committed May 10, 2019
1 parent c7a3c04 commit 943a8c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client-src/default/index.js
Expand Up @@ -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
Expand Down

0 comments on commit 943a8c0

Please sign in to comment.