From 58f9ee482b366230d375b0676a97561c33fb3ca1 Mon Sep 17 00:00:00 2001
From: Mia <49593536+mia-pi-git@users.noreply.github.com>
Date: Thu, 24 Jul 2025 21:21:31 +0000
Subject: [PATCH] Add /resources command, fix crash when loading resources page
on refresh
---
play.pokemonshowdown.com/index.template.html | 3 +--
play.pokemonshowdown.com/js/client-chat.js | 4 ++++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/play.pokemonshowdown.com/index.template.html b/play.pokemonshowdown.com/index.template.html
index 8dc43862b..b830c2a6e 100644
--- a/play.pokemonshowdown.com/index.template.html
+++ b/play.pokemonshowdown.com/index.template.html
@@ -96,6 +96,7 @@ https://psim.us/dev
LM.innerHTML += ' DONE
Loading client...';
+
@@ -130,7 +131,5 @@ https://psim.us/dev
-
-
diff --git a/play.pokemonshowdown.com/js/client-chat.js b/play.pokemonshowdown.com/js/client-chat.js
index f00794d50..7a07b3e39 100644
--- a/play.pokemonshowdown.com/js/client-chat.js
+++ b/play.pokemonshowdown.com/js/client-chat.js
@@ -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;