Solved #180 and one other bug #210
@@ -31,9 +31,7 @@ function init() {
|
|||||||
|
|
||||||
changeActiveTools('XML');
|
changeActiveTools('XML');
|
||||||
var toolUrl = window.location.search.substring(1);
|
var toolUrl = window.location.search.substring(1);
|
||||||
if (toolUrl == "")
|
if (tools.has(toolUrl))
|
||||||
loadLastPage();
|
|
||||||
else if (tools.has(toolUrl))
|
|
||||||
changeTool(toolUrl);
|
changeTool(toolUrl);
|
||||||
else
|
else
|
||||||
loadLastPage();
|
loadLastPage();
|
||||||
@@ -85,10 +83,9 @@ function changeActiveTools(activeCategoryButton) {
|
|||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
function changeTool(tool) {
|
function changeTool(tool) {
|
||||||
console.log("changeTool");
|
|
||||||
if (tools.has(tool)) {
|
if (tools.has(tool)) {
|
||||||
const url = tools.get(tool);
|
const url = tools.get(tool);
|
||||||
document.location.search = tool;
|
document.location.search = tool + "/";
|
||||||
localStorage.setItem("lastPage", tool);
|
localStorage.setItem("lastPage", tool);
|
||||||
document.getElementById("iframe").src = url;
|
document.getElementById("iframe").src = url;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user