mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-01-22 09:25:41 +00:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user