Fixed reload loop bug
This commit is contained in:
		| @@ -85,10 +85,13 @@ 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; | ||||
|     console.log("changeTool"); | ||||
|     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