Solved #180 and one other bug #210

Merged
bema merged 3 commits from bema/fix/broken_layout_mock into master 2023-05-26 11:39:59 +02:00
Showing only changes of commit 1da42aaeea - Show all commits

View File

@@ -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;
}
} }
/** /**