From 2b5fef82031e9a7d6a6f226f7dcaae577fc232cb Mon Sep 17 00:00:00 2001 From: Kevin Burchell Date: Sun, 22 Nov 2026 19:52:32 -0800 Subject: [PATCH] =?UTF-8?q?Show=20Pok=C3=A9mon=20GO=20again?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GO is back in the game list and in Move to HOME (it sends to HOME through GO Transporter). Its logo is saved for offline again. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- app.js | 6 +++--- sw.js | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 78e2298..7393258 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Files: `icons.js` (icon set), `app.js` (sync, dex, hunts, stats, auth), `detail. opened from Stats), `palette.js` (command palette: bolt button or Ctrl/⌘K). Script order in `index.html`: icons.js, detail.js, timeline.js, compare.js, tohome.js, palette.js, app.js. -Games shown: HOME and the games on Switch / Switch 2, FireRed / LeafGreen included (`SHOWN_GAMES` in `app.js`). The older games and GO stay +Games shown: HOME, GO and the games on Switch / Switch 2, FireRed / LeafGreen included (`SHOWN_GAMES` in `app.js`). The older games stay in `data/games.json`, and their catches, badges and playthroughs stay in the account and in JSON backups, but `live()` leaves them out everywhere else. Add an id to `SHOWN_GAMES` to bring a game back (and its logos to `ASSETS` in `sw.js`). diff --git a/app.js b/app.js index 0a16bc6..b4c01f6 100644 --- a/app.js +++ b/app.js @@ -47,10 +47,10 @@ function writeJSON(key, value) { // --------------------------------------------------------------------------- let SPECIES = []; let SPECIES_BY_ID = new Map(); -// The games the app shows: HOME and the Switch / Switch 2 games. The older games -// (and GO) stay in data/games.json, and their catches, badges and playthroughs +// The games the app shows: HOME, GO and the games on Switch / Switch 2. The older +// games stay in data/games.json, and their catches, badges and playthroughs // stay in the account and in backups, just out of sight. Add an id to bring one back. -const SHOWN_GAMES = new Set(['home', 'frlg', 'letsgo', 'swsh', 'bdsp', 'legendsarceus', 'sv', 'legendsza']); +const SHOWN_GAMES = new Set(['home', 'pogo', 'frlg', 'letsgo', 'swsh', 'bdsp', 'legendsarceus', 'sv', 'legendsza']); const GAME_KINDS = new Set(['catch', 'badge', 'playthrough']); // records that belong to one game let GAMES = []; // Extra HOME forms (data/forms.json, from scripts/fetch_forms.py): forms that diff --git a/sw.js b/sw.js index 0e67b85..3ffeb27 100644 --- a/sw.js +++ b/sw.js @@ -3,7 +3,7 @@ // then installs the new version in the background and the page reloads or offers to. // Sprites and PokéAPI data: cache-first, since they never change. // Sign-in and sync requests (googleapis.com) are never cached. -var CACHE = 'poketracker-v28'; +var CACHE = 'poketracker-v29'; // v2: remote sprites are now fetched with CORS. v1 held them as opaque responses, // which browsers count as several MB each against the storage quota. var SPRITES = 'poketracker-sprites-v2'; @@ -16,6 +16,7 @@ var ASSETS = [ './vendor/firebase/firebase-app-compat.js', './vendor/firebase/firebase-auth-compat.js', './logos/bdsp-0.webp', + './logos/pogo-0.webp', './logos/frlg-0.webp', './logos/frlg-1.webp', './logos/bdsp-1.webp',