- Fixed color-issue on local
- Fixed issue with navigating back in playlist on local
- Fixed issue with starting at the right time on local when start/end had been set
- Fixed issue where changing channel when in local, song wouldn't change
- Fixed issue on previous song not starting at the correct time in local mode
This commit is contained in:
Kasper Rynning-Tønnesen
2018-07-24 23:40:35 +02:00
parent d7522cad73
commit 865ba4ce80
5 changed files with 19 additions and 10 deletions

View File

@@ -356,12 +356,12 @@ var Frontpage = {
//socket.disconnect();
socket.removeAllListeners();
}
var old_chan = chan;
if(!popstate){
window.history.pushState("to the channel!", "Title", "/" + new_channel);
if(prev_chan_list == "") prev_chan_list = new_channel;
if(prev_chan_player == "") prev_chan_player = new_channel;
window.chan = new_channel;
chan = new_channel;
}
var response = document.createElement("div");
@@ -392,6 +392,7 @@ var Frontpage = {
Helper.addClass(".page-footer", "padding-bottom-novideo");
from_frontpage = true;
if(document.querySelectorAll("#alreadychannel").length == 1){
if(old_chan != new_channel) local_new_channel = true;
Channel.init();
}else{
fromFront = true;