From 4f42628137fc3913a74b7e44cb9ad7d535ebedb3 Mon Sep 17 00:00:00 2001 From: bruno Date: Tue, 6 Feb 2024 16:47:51 +0100 Subject: [PATCH] test --- assets/script.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(){