Google Analytics events

This commit is contained in:
Kasper Rynning-Tønnesen
2018-02-25 22:42:53 +01:00
parent 48cd95a11e
commit 5aadb5ab4f
6 changed files with 40 additions and 8 deletions

View File

@@ -105,6 +105,7 @@ var Channel = {
$(".offline_switch_class")[0].checked = true;
change_offline(true, offline);
}
if(!Helper.mobilecheck() && ($("#alreadychannel").length === 0 || !Hostcontroller.old_id || $("#code-text").text().toUpperCase() == "ABBADUR")) setup_host_initialization();
if($("#alreadychannel").length === 0 || Helper.mobilecheck()){
setup_youtube_listener();
@@ -197,8 +198,6 @@ 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 || !Hostcontroller.old_id || $("#code-text").text().toUpperCase() == "ABBADUR")) setup_host_initialization();
if(!Helper.msieversion() && !Helper.mobilecheck()) Notification.requestPermission();
$(".search_input").focus();