mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-17 11:30:54 +00:00
3.5.134. Fixed the player stats on the Debug page of the FFZ menu. Now actually finds the player if you've been navigating around.
This commit is contained in:
parent
adaf77dabf
commit
2677a252d0
1 changed files with 7 additions and 3 deletions
|
@ -276,9 +276,7 @@ FFZ.menu_pages.about = {
|
|||
player_head = createElement('div'),
|
||||
player_list = createElement('ul'),
|
||||
|
||||
pkeys = Object.keys(this.players),
|
||||
player = pkeys.length && this.players[pkeys[0]] && this.players[pkeys[0]].ffz_player,
|
||||
player_data,
|
||||
player, player_data,
|
||||
|
||||
ver_head = createElement('div'),
|
||||
vers = createElement('ul'),
|
||||
|
@ -292,6 +290,12 @@ FFZ.menu_pages.about = {
|
|||
log_head = createElement('div'),
|
||||
logs = createElement('pre');
|
||||
|
||||
for(var pkey in this.players) {
|
||||
player = this.players[pkey] && this.players[pkey].player;
|
||||
if ( player )
|
||||
break;
|
||||
}
|
||||
|
||||
if ( player ) {
|
||||
try {
|
||||
player_data = player.getVideoInfo();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue