mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-06 02:26:04 +02: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');
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user