Fixed issue with hostmode navigating and embedded issue

This commit is contained in:
Kasper Rynning-Tønnesen
2018-06-06 16:01:33 +02:00
parent 6636c8481a
commit 6587f371de
2 changed files with 6 additions and 0 deletions

View File

@@ -535,6 +535,11 @@ var Channel = {
window.location.hostname = host[host.length -1]; window.location.hostname = host[host.length -1];
}*/ }*/
Admin.display_logged_out(); Admin.display_logged_out();
if(hostMode) {
Helper.removeClass("#main-row", "fullscreened");
document.querySelector(".host_switch_class").checked = false
enable_host_mode(false);
}
var channel_before_move = chan.toLowerCase(); var channel_before_move = chan.toLowerCase();
clearTimeout(timed_remove_check); clearTimeout(timed_remove_check);
changing_to_frontpage = true; changing_to_frontpage = true;

View File

@@ -5,6 +5,7 @@ var song_title = "";
var paused = false; var paused = false;
var client = false; var client = false;
var startTime = 0; var startTime = 0;
var hostMode = false;
var socket_connected = false; var socket_connected = false;
var dynamicListeners = {}; var dynamicListeners = {};
var player_ready = false; var player_ready = false;