diff --git a/src/main.tsx b/src/main.tsx index aa34724..f51f9b0 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -52,7 +52,7 @@ async function onLoad(): Promise { pageTitleElement: document.querySelector("#pageTitle"), pageContentElement: document.querySelector("#pageContent"), resetElementContent: !true, - onPageChanged: async function (_) { + onPageChange: async function (_) { pageState.currentPage = await pageRouter.getCurrentPageID(); document.documentElement.dir = pageState.pageDirection; },