We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09e82c4 commit c75da96Copy full SHA for c75da96
scripts/store/app.js
@@ -751,13 +751,22 @@ function DrawOnlineStatsWidget( items )
751
WriteLog( 'GetApp failed to load' );
752
}
753
754
- block?.remove();
755
-
756
for( const el of updateElements )
757
{
758
el.remove();
759
760
+ steamApiPlayersFetch.then( ( livePlayers ) =>
+ {
761
+ if( livePlayers < 1 )
762
763
+ block?.remove();
764
+ return;
765
+ }
766
+
767
+ onlineNow.textContent = FormatNumber( livePlayers );
768
+ } );
769
770
return;
771
772
0 commit comments