diff --git a/README.md b/README.md index ac02c2e5c..2c54e509e 100644 --- a/README.md +++ b/README.md @@ -45,18 +45,15 @@ New client Development is proceeding on the client rewrite! The live version is available at https://play.pokemonshowdown.com/beta -You can contribute to it yourself using the same process as before, just -use `testclient-new.html` rather than `testclient-old.html`. - -Testing (the old client) ------------------------------------------------------------------------- - Client testing requires a build step! Install the latest Node.js (we require v20 or later) and Git, and run `node build` (on Windows) or `./build` -(on other OSes) to build. +(on other OSes) to build after each change. + +(This will do a fast build with no checks. For tests, linting, and +typechecking, you'll want to do `npm test` separately.) You can make and test client changes simply by building after each change, -and opening `play.pokemonshowdown.com/testclient-old.html`. This will allow you +and opening `play.pokemonshowdown.com/testclient-new.html`. This will allow you to test changes to the client without setting up your own login server. ### Test keys @@ -65,9 +62,8 @@ For security reasons, browsers [don't let other websites control PS][5], so they can't screw with your account, but it does make it harder to log in on the test client. -The default hack makes you copy/paste the data instead, but if you're -refreshing a lot, just add a `config/testclient-key.js` file, with the -contents: +If you need a logged-in account, add a `config/testclient-key.js` file, with +the contents: const POKEMON_SHOWDOWN_TESTCLIENT_KEY = 'sid'; @@ -78,21 +74,19 @@ grab it from: Make sure to put it in `config/` and not `play.pokemonshowdown.com/config/`. -(This is the only supported method of logging in on the beta testclient.) - [5]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS ### Other servers You can connect to an arbitrary server by navigating to -`testclient-old.html?~~host:port`. For example, to connect to a server running -locally on port 8000, you can navigate to `testclient-old.html?~~localhost:8000`. +`testclient-new.html?~~host:port`. For example, to connect to a server running +locally on port 8000, you can navigate to `testclient-new.html?~~localhost:8000`. **NOTE**: Certain browsers will convert `'?'` to `'%3F'` when reading files off of the local filesystem. As a workaround, try using a different browser or serving the files locally first (ie. run `npx http-server` from the directory this README is in, then navigate in your browser to -`http://localhost:8080/testclient-old.html?~~localhost:8000`). +`http://localhost:8080/testclient-new.html?~~localhost:8000`). ### Limitations diff --git a/play.pokemonshowdown.com/src/battle-team-editor.tsx b/play.pokemonshowdown.com/src/battle-team-editor.tsx index 516d9f061..5ac160e14 100644 --- a/play.pokemonshowdown.com/src/battle-team-editor.tsx +++ b/play.pokemonshowdown.com/src/battle-team-editor.tsx @@ -2501,7 +2501,7 @@ class TeamWizard extends preact.Component<{ Undo delete
: null; - return