From e21042d08bf82088ae596d17469be7a1778a57cf Mon Sep 17 00:00:00 2001 From: Ryan Lanny Jenkins Date: Sun, 18 May 2025 10:41:39 -0500 Subject: [PATCH] Add a way to clear saves. --- src/store/useSaveSystem.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/store/useSaveSystem.ts b/src/store/useSaveSystem.ts index 915dccb..51cd3ec 100644 --- a/src/store/useSaveSystem.ts +++ b/src/store/useSaveSystem.ts @@ -6,6 +6,10 @@ export const useSaveSystem = () => { useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { + if (e.key === 'r' && e.ctrlKey) { + localStorage.clear() + } + const slot = { '1': 1,