Change websocket closed message
This commit is contained in:
parent
c3d3ec125d
commit
00dfcbb462
2 changed files with 8 additions and 6 deletions
|
@ -174,11 +174,13 @@
|
||||||
id = 'standalone-installer';
|
id = 'standalone-installer';
|
||||||
url = 'register.html';
|
url = 'register.html';
|
||||||
}
|
}
|
||||||
|
if (!chrome.app.window.get(id)) {
|
||||||
extension.windows.open({
|
extension.windows.open({
|
||||||
id: id,
|
id: id,
|
||||||
url: url,
|
url: url,
|
||||||
bounds: { width: 800, height: 666 }
|
bounds: { width: 800, height: 666 }
|
||||||
});
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (chrome.runtime.onInstalled) {
|
if (chrome.runtime.onInstalled) {
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
break;
|
break;
|
||||||
case WebSocket.CLOSED:
|
case WebSocket.CLOSED:
|
||||||
className = 'closed';
|
className = 'closed';
|
||||||
message = 'Websocket closed';
|
message = 'Disconnected';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!this.$el.hasClass(className)) {
|
if (!this.$el.hasClass(className)) {
|
||||||
|
|
Loading…
Reference in a new issue