Fix syntax. Emit relaydisconnect so connect button changes
This commit is contained in:
parent
fbfeec8fca
commit
91b0ddc259
1 changed files with 2 additions and 1 deletions
|
@ -385,11 +385,12 @@ function($rootScope,
|
|||
'onmessage': onmessage,
|
||||
'onerror': onerror
|
||||
});
|
||||
}catch(e) {
|
||||
} catch(e) {
|
||||
$log.debug("Websocket caught DOMException:", e);
|
||||
$rootScope.lastError = Date.now();
|
||||
$rootScope.errorMessage = true;
|
||||
$rootScope.securityError = true;
|
||||
$rootScope.$emit('relayDisconnect');
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue