1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-06 00:05:36 +02:00

Fix function declaration style for popstateHandler

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-09-16 23:27:29 +00:00
parent fb864ecd6c
commit 5393045dfd

View File

@@ -56,12 +56,12 @@ function onClosed() {
emit('closed'); emit('closed');
} }
const popstateHandler = (): void => { function popstateHandler(): void {
// If the hash is no longer our folder hash, close the page // If the hash is no longer our folder hash, close the page
if (window.location.hash !== `#folder-${props.pageId}`) { if (window.location.hash !== `#folder-${props.pageId}`) {
closePage(); closePage();
} }
}; }
onMounted(() => { onMounted(() => {
// Push a new history state with a unique hash when the folder page opens // Push a new history state with a unique hash when the folder page opens