Fixed 404 when no lastPage was stored

This commit is contained in:
2023-05-12 14:55:35 +02:00
parent c89623c3a8
commit 0b9882db18

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');