wait for fetch to finish

This commit is contained in:
Bruno Rybársky 2024-02-05 23:07:21 +01:00
parent 52e30c1e99
commit 38895b1502

@ -125,7 +125,7 @@ function navigateTo(site, page){
data.append("action", "getPage");
data.append("site", site);
data.append("page", page);
doPageAction(data).then((value) => {
doPageAction(data).then(() => {
localStorage.setItem("currentSite", site);
localStorage.setItem("currentPage", page);
onPageLoad();