diff --git a/assets/script.js b/assets/script.js index dc0ec52..3d33896 100644 --- a/assets/script.js +++ b/assets/script.js @@ -142,12 +142,11 @@ function navigateTo(site, page){ site: site, page: page, }; - let pageActionStatus = doPageAction(data, true); - if(pageActionStatus.Status === "Success") { + doPageAction(data, true).then(() => { localStorage.setItem("currentSite", site); localStorage.setItem("currentPage", page); onPageLoad(); - } + }); } function softReload(){