Fixed reload loop bug
This commit is contained in:
@@ -85,10 +85,13 @@ function changeActiveTools(activeCategoryButton) {
|
|||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
function changeTool(tool) {
|
function changeTool(tool) {
|
||||||
const url = tools.get(tool);
|
console.log("changeTool");
|
||||||
localStorage.setItem("lastPage", tool);
|
if (tools.has(tool)) {
|
||||||
document.getElementById("iframe").src = url;
|
const url = tools.get(tool);
|
||||||
document.location.search = tool;
|
document.location.search = tool;
|
||||||
|
localStorage.setItem("lastPage", tool);
|
||||||
|
document.getElementById("iframe").src = url;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user