Solved #180 and one other bug #210
@@ -21,6 +21,7 @@ input {
 | 
			
		||||
    border: 2px solid rgba(93, 99, 96, 0.705);
 | 
			
		||||
    border-radius: 5px;
 | 
			
		||||
    padding: 8px;
 | 
			
		||||
    display: block;
 | 
			
		||||
    
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -31,9 +31,7 @@ function init() {
 | 
			
		||||
 | 
			
		||||
    changeActiveTools('XML');
 | 
			
		||||
    var toolUrl = window.location.search.substring(1);
 | 
			
		||||
    if (toolUrl == "")
 | 
			
		||||
        loadLastPage();
 | 
			
		||||
    else if (tools.has(toolUrl))
 | 
			
		||||
    if (tools.has(toolUrl))
 | 
			
		||||
        changeTool(toolUrl);
 | 
			
		||||
    else
 | 
			
		||||
        loadLastPage();
 | 
			
		||||
@@ -85,10 +83,12 @@ function changeActiveTools(activeCategoryButton) {
 | 
			
		||||
 * @returns {void}
 | 
			
		||||
 */
 | 
			
		||||
function changeTool(tool) {
 | 
			
		||||
    const url = tools.get(tool);
 | 
			
		||||
    localStorage.setItem("lastPage", tool);
 | 
			
		||||
    document.getElementById("iframe").src = url;
 | 
			
		||||
    document.location.search = tool;
 | 
			
		||||
    if (tools.has(tool)) {
 | 
			
		||||
        const url = tools.get(tool);
 | 
			
		||||
        document.location.search = tool + "/";
 | 
			
		||||
        localStorage.setItem("lastPage", tool);
 | 
			
		||||
        document.getElementById("iframe").src = url;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user