diff --git a/src/App.tsx b/src/App.tsx index bb0c18c..07df7a6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -81,6 +81,15 @@ function App () { window.opener.postMessage({type: 'allocate'}, '*'); }); + onMount(() => { + window.addEventListener('hashchange', () => { + const currentPage = window.location.hash.trim().slice(1); + if (currentPage !== page()) { + navigateTo(currentPage); + } + }); + }); + return ( <>