Fixed 404 when no lastPage was stored (solves #189) #190
@@ -107,7 +107,11 @@ function changeTool(tool) {
 | 
				
			|||||||
 * @returns {void}
 | 
					 * @returns {void}
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
function loadLastPage() {
 | 
					function loadLastPage() {
 | 
				
			||||||
    const lastPage = localStorage.getItem("lastPage");
 | 
					    var lastPage = localStorage.getItem("lastPage");
 | 
				
			||||||
 | 
					    if (lastPage == null) {
 | 
				
			||||||
 | 
					        lastPage = "xpath";
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    switch (lastPage) { // XML category is default.
 | 
					    switch (lastPage) { // XML category is default.
 | 
				
			||||||
        case "jsonform":
 | 
					        case "jsonform":
 | 
				
			||||||
            changeActiveTools('JSON');
 | 
					            changeActiveTools('JSON');
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user