diff --git a/client-src/default/socket.js b/client-src/default/socket.js index 46c07afe37..a84a68a1ac 100644 --- a/client-src/default/socket.js +++ b/client-src/default/socket.js @@ -5,17 +5,18 @@ camelcase */ -// this SockJSClient is here as a default fallback, in case inline mode -// is off or the client is not injected. This will be switched to -// WebsocketClient when it becomes the default -const SockJSClient = require('../clients/SockJSClient'); - let Client; try { // if __webpack_dev_server_client__ is undefined, we should fall back // to SockJSClient Client = __webpack_dev_server_client__; } catch (e) { + // this SockJSClient is here as a default fallback, in case inline mode + // is off or the client is not injected. This will be switched to + // WebsocketClient when it becomes the default + + // eslint-disable-next-line global-require + const SockJSClient = require('../clients/SockJSClient'); Client = SockJSClient; }