Votes and shuffled lists remain the same if the user navigates from a frontpage, and back to the same list in private mode

This commit is contained in:
Kasper Rynning-Tønnesen
2017-01-27 11:11:47 +01:00
parent 5953b4a538
commit 84aa951149
6 changed files with 58 additions and 46 deletions

View File

@@ -282,6 +282,8 @@ var Frontpage = {
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;
}
@@ -376,7 +378,7 @@ function initfp(){
Crypt.init();
if(Crypt.get_offline()){
change_offline(true);
change_offline(true, offline);
}
socket.emit('frontpage_lists');