Fixed 404 when no lastPage was stored (solves #189) #190

Merged
bema merged 1 commits from bema/fix/redirect_to_undefined_page into master 2023-05-12 15:03:49 +02:00

View File

@@ -107,7 +107,11 @@ function changeTool(tool) {
* @returns {void}
*/
function loadLastPage() {
const lastPage = localStorage.getItem("lastPage");
var lastPage = localStorage.getItem("lastPage");
if (lastPage == null) {
lastPage = "xpath";
}
switch (lastPage) { // XML category is default.
case "jsonform":
changeActiveTools('JSON');