diff --git a/packages/frontend/src/components/MkFolderPage.vue b/packages/frontend/src/components/MkFolderPage.vue index 7b03cce9c5..37cd4a749e 100644 --- a/packages/frontend/src/components/MkFolderPage.vue +++ b/packages/frontend/src/components/MkFolderPage.vue @@ -56,12 +56,12 @@ function onClosed() { emit('closed'); } -const popstateHandler = (): void => { +function popstateHandler(): void { // If the hash is no longer our folder hash, close the page if (window.location.hash !== `#folder-${props.pageId}`) { closePage(); } -}; +} onMounted(() => { // Push a new history state with a unique hash when the folder page opens