Allow to revert to Zone pages on reload.

This commit is contained in:
Philippe PITTOLI 2024-04-10 11:45:46 +02:00
parent f71bae55a0
commit 5d6c1b33e6

View File

@ -326,7 +326,9 @@ handleAction = case _ of
Routing page -> do
-- Store the current page we are on and restore it when we reload.
sessionstorage <- H.liftEffect $ Window.sessionStorage =<< HTML.window
H.liftEffect $ Storage.setItem "current-page" (show page) sessionstorage
H.liftEffect $ Storage.setItem "current-page" (case page of
Zone _ -> "Zone"
_ -> show page) sessionstorage
_ <- case page of
Zone zone -> H.liftEffect $ Storage.setItem "current-zone" zone sessionstorage