mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 11:40:49 +00:00
Fix function declaration style for popstateHandler
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user