mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 15:22:35 -05:00
Fix red (Online) display when offline
Conext: https://www.smogon.com/forums/threads/bug-reports-v3-read-original-post-before-posting.3634749/post-8176910
This commit is contained in:
@@ -2492,7 +2492,7 @@ function toId() {
|
||||
buf += '<strong><a href="//pokemonshowdown.com/users/' + userid + '" target="_blank">' + BattleLog.escapeHTML(name) + '</a></strong><br />';
|
||||
var offline = data.rooms === false;
|
||||
var status = offline ? '(Offline)' : '(Online)';
|
||||
if (data.status) status = data.status.startsWith('!') ? data.status.slice(1) : data.status;
|
||||
if (data.status && !offline) status = data.status.startsWith('!') ? data.status.slice(1) : data.status;
|
||||
buf += '<span class="userstatus' + (offline ? ' offline' : '') + '">' + BattleLog.escapeHTML(status) + '</span><br />';
|
||||
buf += '<small>' + (group || ' ') + '</small>';
|
||||
if (globalgroup) buf += '<br /><small>' + globalgroup + '</small>';
|
||||
|
||||
Reference in New Issue
Block a user