Merge pull request #348 from zoff-music/feature/host-mode

Fixed issue with hostmode navigating and embedded issue
This commit is contained in:
Kasper Rynning-Tønnesen
2018-06-06 16:01:54 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -535,6 +535,11 @@ var Channel = {
window.location.hostname = host[host.length -1];
}*/
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();
clearTimeout(timed_remove_check);
changing_to_frontpage = true;

View File

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