Compare commits
2 Commits
4c748a1007
...
4f42628137
Author | SHA1 | Date | |
---|---|---|---|
4f42628137 | |||
7cee788ae5 |
@@ -37,6 +37,9 @@ function handlePageResponse(data) {
|
||||
|
||||
if (data.Page) {
|
||||
pageArea.innerHTML = data.Page;
|
||||
if(data.PageLocation){
|
||||
history.pushState({}, "", data.PageLocation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,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(){
|
||||
|
Reference in New Issue
Block a user