We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9e8b00 commit 3fc84c6Copy full SHA for 3fc84c6
ui/frontend/index.tsx
@@ -26,8 +26,9 @@ import Router from './Router';
26
import configureStore from './configureStore';
27
import openWebSocket from './websocket';
28
29
-// Might be null;
30
-const socket = openWebSocket(window.location);
+const params = new URLSearchParams(window.location.search);
+// openWebSocket() may return null.
31
+const socket = params.has('websocket') ? openWebSocket(window.location) : null;
32
33
const store = configureStore(window);
34
0 commit comments