Also join to serverChanged channel by default

This commit is contained in:
shortcutme 2017-11-05 23:42:33 +01:00
parent 6f37654303
commit 7962baa2da
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 3 additions and 4 deletions

View file

@ -352,7 +352,7 @@ class Wrapper
onOpenWebsocket: (e) =>
@ws.cmd "channelJoin", {"channel": "siteChanged"} # Get info on modifications
@ws.cmd "channelJoin", {"channels": ["siteChanged", "serverChanged"]} # Get info on modifications
if not @wrapperWsInited and @inner_ready
@sendInner {"cmd": "wrapperOpenedWebsocket"} # Send to inner frame
@wrapperWsInited = true

View file

@ -807,7 +807,6 @@ jQuery.extend( jQuery.easing,
}).call(this);
/* ---- src/Ui/media/Wrapper.coffee ---- */
@ -1320,7 +1319,7 @@ jQuery.extend( jQuery.easing,
Wrapper.prototype.onOpenWebsocket = function(e) {
this.ws.cmd("channelJoin", {
"channel": "siteChanged"
"channels": ["siteChanged", "serverChanged"]
});
if (!this.wrapperWsInited && this.inner_ready) {
this.sendInner({
@ -1563,4 +1562,4 @@ jQuery.extend( jQuery.easing,
window.wrapper = new Wrapper(ws_url);
}).call(this);
}).call(this);