File tree Expand file tree Collapse file tree
src/Happstack/Authenticate Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ import GHCJS.DOM.Document (setCookie)
6161import GHCJS.DOM.EventM (EventName , EventM )
6262import qualified GHCJS.DOM.EventM as EventM
6363import qualified GHCJS.DOM.GlobalEventHandlers as DOM (load )
64- import GHCJS.DOM.Location (Location , getSearch , setHref )
64+ import GHCJS.DOM.Location (Location , getSearch , reload , setHref )
6565import qualified GHCJS.DOM.URLSearchParams as Search
6666import GHCJS.DOM.Window (getLocalStorage , getLocation )
6767import GHCJS.DOM.Storage (Storage , getItem , removeItem , setItem )
@@ -533,6 +533,9 @@ logoutHandler routeFn update modelTV e =
533533 do debugStrLn $ " logoutHandler - logout"
534534 (Just d) <- GHCJS. currentDocument
535535 clearUser routeFn modelTV
536+ (Just w) <- GHCJS. currentWindow
537+ location <- getLocation w
538+ reload location
536539 _ ->
537540 do debugStrLn $ " unknown action - " ++ show action
538541 Nothing -> do debugStrLn " target is not an element"
You can’t perform that action at this time.
0 commit comments