Co-authored-by: Adam Bem <adam.bem@zoho.eu> Reviewed-on: #207 Reviewed-by: Mikolaj Widla <widlam@noreply.example.com>
This commit is contained in:
@@ -30,7 +30,14 @@ function init() {
|
|||||||
tools.set("mock", "tools/mock.html");
|
tools.set("mock", "tools/mock.html");
|
||||||
|
|
||||||
changeActiveTools('XML');
|
changeActiveTools('XML');
|
||||||
|
var toolUrl = window.location.search.substring(1);
|
||||||
|
if (toolUrl == "")
|
||||||
loadLastPage();
|
loadLastPage();
|
||||||
|
else if (tools.has(toolUrl))
|
||||||
|
changeTool(toolUrl);
|
||||||
|
else
|
||||||
|
loadLastPage();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -81,6 +88,7 @@ function changeTool(tool) {
|
|||||||
const url = tools.get(tool);
|
const url = tools.get(tool);
|
||||||
localStorage.setItem("lastPage", tool);
|
localStorage.setItem("lastPage", tool);
|
||||||
document.getElementById("iframe").src = url;
|
document.getElementById("iframe").src = url;
|
||||||
|
document.location.search = tool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user