awaiting before show

This commit is contained in:
Miodec 2022-02-11 16:11:23 +01:00
parent 9314409646
commit c00730386e

View file

@ -71,8 +71,8 @@ export function change(page) {
history.pushState(nextPage.pathname, null, nextPage.pathname);
nextPage?.afterShow();
},
() => {
nextPage?.beforeShow();
async () => {
await nextPage?.beforeShow();
}
);
}