Tools can now be selected from URL

This commit is contained in:
2023-05-24 11:03:53 +02:00
parent 02c10b8354
commit 042dc1cc85

View File

@@ -30,7 +30,14 @@ function init() {
tools.set("mock", "tools/mock.html");
changeActiveTools('XML');
loadLastPage();
var toolUrl = window.location.search.substring(1);
if (toolUrl == "")
loadLastPage();
else if (tools.has(toolUrl))
changeTool(toolUrl);
else
loadLastPage();
}
/**