diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-07-04 16:41:13 +0200 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-07-06 11:42:45 +0200 |
| commit | f728335bef1305bdf21a24df76af9acabda80a37 (patch) | |
| tree | 5f09582d2353d5613aef6c83cb9e62b534fc10bf | |
| parent | 02207abfbe8377a8a435da915426d5958a646413 (diff) | |
| download | mullvadvpn-f728335bef1305bdf21a24df76af9acabda80a37.tar.xz mullvadvpn-f728335bef1305bdf21a24df76af9acabda80a37.zip | |
Don't create a jsonrpc-ws-thing with invalid location
Conflicts:
app/lib/backend.js
| -rw-r--r-- | app/lib/backend.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js index b4ac1c2574..377e27e702 100644 --- a/app/lib/backend.js +++ b/app/lib/backend.js @@ -71,9 +71,11 @@ export class Backend { constructor(store: ReduxStore, ipc: ?IpcFacade) { this._store = store; - this._ipc = ipc || new RealIpc(''); - this._registerIpcListeners(); - this._startReachability(); + if(ipc) { + this._ipc = ipc; + this._registerIpcListeners(); + this._startReachability(); + } } setLocation(loc: string) { |
