mirror of
https://github.com/chase-manning/pokemon-js.git
synced 2025-08-10 20:59:13 +00:00
🐛 fix update not working
This commit is contained in:
parent
2b12d4454e
commit
3454013c94
3 changed files with 3 additions and 6 deletions
src
|
@ -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;
|
||||
|
|
|
@ -18,6 +18,7 @@ const StyledGameboyMenu = styled.div`
|
|||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-evenly;
|
||||
background: pink;
|
||||
`;
|
||||
|
||||
const colorAnimation = keyframes`
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue