Change websocket closed message

This commit is contained in:
lilia 2015-08-24 09:10:48 -07:00
parent c3d3ec125d
commit 00dfcbb462
2 changed files with 8 additions and 6 deletions

View file

@ -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) {

View file

@ -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)) {