diff --git a/src/screens/Ledger.jsx b/src/screens/Ledger.jsx index 79e41ec..e661126 100644 --- a/src/screens/Ledger.jsx +++ b/src/screens/Ledger.jsx @@ -92,6 +92,12 @@ export default function Game({ state, onStateChange }) { showMessage('You rest. The harbour sounds fade.') } + function handleNewGame() { + if (!window.confirm('Abandon this ledger and start a new one?')) return + localStorage.removeItem('otium_token') + window.location.reload() + } + // Progress bar values let progressPct = 0 let progressLabel = '' @@ -257,6 +263,13 @@ export default function Game({ state, onStateChange }) {