mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +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:
@@ -14,7 +14,8 @@ var Player = {
|
||||
}catch(e){
|
||||
state = null;
|
||||
}
|
||||
if((!offline && (state != null || from_frontpage)) || (offline && (!(state != null) || from_frontpage))|| (!offline && (!(state != null) || from_frontpage)) || (offline && state == -1)){
|
||||
if(((!offline && (state != null || from_frontpage)) || (offline && (!(state != null) || from_frontpage))|| (!offline && (!(state != null) || from_frontpage)) || (offline && state == -1)) && !(offline && prev_chan_player == chan)){
|
||||
prev_chan_player = chan;
|
||||
from_frontpage = false;
|
||||
Player.loaded = false;
|
||||
Helper.log("--------youtube_listener--------");
|
||||
@@ -114,6 +115,7 @@ var Player = {
|
||||
} else {
|
||||
if(!durationBegun)
|
||||
Player.durationSetter();
|
||||
duration = Player.player.getDuration();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user