Fix function declaration style for popstateHandler
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
parent
fb864ecd6c
commit
5393045dfd
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue