diff --git a/src/app/constants.ts b/src/app/constants.ts index 7970ef4..d30c788 100644 --- a/src/app/constants.ts +++ b/src/app/constants.ts @@ -1,4 +1,4 @@ -export const DEBUG_MODE = true; +export const DEBUG_MODE = false; export const PAINT_MODE = false; export const BLOCK_PIXEL_WIDTH = 16; diff --git a/src/components/GameboyMenu.tsx b/src/components/GameboyMenu.tsx index 594691f..522b77c 100644 --- a/src/components/GameboyMenu.tsx +++ b/src/components/GameboyMenu.tsx @@ -18,6 +18,7 @@ const StyledGameboyMenu = styled.div` flex-direction: column; align-items: center; justify-content: space-evenly; + background: pink; `; const colorAnimation = keyframes` diff --git a/src/components/StartMenu.tsx b/src/components/StartMenu.tsx index 0698b73..6a3c8c4 100644 --- a/src/components/StartMenu.tsx +++ b/src/components/StartMenu.tsx @@ -20,7 +20,6 @@ import { updateSpecificPokemon, } from "../state/gameSlice"; import PokemonList from "./PokemonList"; -import * as serviceWorkerRegistration from "../serviceWorkerRegistration"; import { DEBUG_MODE } from "../app/constants"; import { getPokemonStats } from "../app/use-pokemon-stats"; @@ -82,10 +81,7 @@ const StartMenu = () => { { label: "Update", action: () => { - // Our app is a PWA, the service worker caches the site. - // This action should remove the cache and load it again - serviceWorkerRegistration.unregister(); - window.location.reload(); + window.location.href = `/?v=${Date.now()}`; }, }, ...(DEBUG_MODE