Add /resources command, fix crash when loading resources page on refresh
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run

This commit is contained in:
Mia 2025-07-24 21:21:31 +00:00 committed by Guangcong Luo
parent b9cb3f356a
commit 58f9ee482b
2 changed files with 5 additions and 2 deletions

View File

@ -96,6 +96,7 @@ https://psim.us/dev
LM.innerHTML += ' DONE<br />Loading client...';
</script>
<script src="//play.pokemonshowdown.com/data/commands.js?"></script>
<script src="//play.pokemonshowdown.com/js/client.js?"></script>
<script src="//play.pokemonshowdown.com/js/client-topbar.js?"></script>
<script src="//play.pokemonshowdown.com/js/client-mainmenu.js?"></script>
@ -130,7 +131,5 @@ https://psim.us/dev
<script src="//play.pokemonshowdown.com/js/battle-dex-search.js?"></script>
<script src="//play.pokemonshowdown.com/js/search.js?"></script>
<script src="//play.pokemonshowdown.com/data/commands.js?"></script>
<script src="//play.pokemonshowdown.com/data/aliases.js?" async></script>
<script src="//play.pokemonshowdown.com/js/clean-cookies.php" async></script>

View File

@ -1070,6 +1070,10 @@
});
return false;
case 'resources':
app.joinRoom('resources');
return false;
case 'buttonmute':
if (this.checkBroadcast(cmd, text)) return false;
var self = this;