From 32f068c36edf25e00ab5e4855cba10ae1a4875f1 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Sun, 7 Feb 2021 11:54:50 +0100 Subject: [PATCH] fix back/forward in quest log. --- svelte-ui/src/stores/selection.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/svelte-ui/src/stores/selection.ts b/svelte-ui/src/stores/selection.ts index 7f07f91..c8c91f2 100644 --- a/svelte-ui/src/stores/selection.ts +++ b/svelte-ui/src/stores/selection.ts @@ -29,4 +29,8 @@ function createSelectionStore() { const selectionStore = createSelectionStore(); +window.addEventListener("hashchange", () => { + selectionStore.refresh(); +}); + export default selectionStore; \ No newline at end of file