Possible fix for remotecontroller not being enabled

This commit is contained in:
Kasper Rynning-Tønnesen
2018-02-13 11:55:01 +01:00
parent 062e3630a3
commit df681c295e

View File

@@ -86,7 +86,7 @@ var Channel = {
Channel.set_title_width();
},
handles: "e",
minWidth: 350,
minWidth: 280,
maxWidth: $(window).width()-241
});
@@ -197,7 +197,7 @@ var Channel = {
socket.emit("get_history", {channel: chan.toLowerCase(), all: false});
socket.emit("get_history", {channel: chan.toLowerCase(), all: true});
if(!Helper.mobilecheck() && $("#alreadychannel").length === 0) setup_host_initialization();
if(!Helper.mobilecheck() && ($("#alreadychannel").length === 0 || !Hostcontroller.old_id || $("#code-text").text().toUpperCase() == "ABBADUR")) setup_host_initialization();
if(!Helper.msieversion() && !Helper.mobilecheck()) Notification.requestPermission();