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 e468dac commit 2b324fcCopy full SHA for 2b324fc
src/db/bridge.js
@@ -10,7 +10,6 @@ import * as U from '../state/update'
10
import { UnmountClosed } from 'react-collapse'
11
12
const RETRY_INTERVAL = 1000
13
-const BRIDGE_URL = 'ws://localhost:14645'
14
15
let clientConnectorSocket = null
16
let checkConnectorInterval
@@ -23,7 +22,7 @@ var bridgeAlive = true
23
22
24
function tryOpenBridge() {
25
try {
26
- clientConnectorSocket = new WebSocket(BRIDGE_URL)
+ clientConnectorSocket = new WebSocket("ws://" + window.location.hostname + ":14645");
27
} catch (err) {
28
State.apply('connect', 'bridge_status', U.replace('mixed_fail'))
29
}
0 commit comments