mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-23 00:17:08 -05:00
Handle |refresh| message globally
Now the /refreshpage command will no longer have its effects limited to users in Lobby.
This commit is contained in:
parent
8bc7c2e5d6
commit
128a8bc9bf
|
|
@ -1161,10 +1161,6 @@
|
|||
this.addJoinLeave('rename', row[1], row[2], true);
|
||||
break;
|
||||
|
||||
case 'refresh':
|
||||
// refresh the page
|
||||
document.location.reload(true);
|
||||
break;
|
||||
|
||||
case 'users':
|
||||
this.parseUserList(row[1]);
|
||||
|
|
|
|||
|
|
@ -1080,6 +1080,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
case 'refresh':
|
||||
// refresh the page
|
||||
document.location.reload(true);
|
||||
break;
|
||||
|
||||
/* fall through */
|
||||
default:
|
||||
// the messagetype wasn't in our list of recognized global
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user