| @@ -1,5 +1,17 @@ | ||||
| const tools = new Map(); | ||||
|  | ||||
| /** | ||||
|  * Get address of Mock Services | ||||
|  * | ||||
|  * @function | ||||
|  * @name getMockHost | ||||
|  * @kind function | ||||
|  * @returns {string} | ||||
|  */ | ||||
| function getMockHost() { | ||||
|     return window.location.protocol + "//" + window.location.hostname + ":8097"; | ||||
| } | ||||
|  | ||||
| /** | ||||
|  * Function called after page is loaded | ||||
|  *  | ||||
| @@ -18,15 +30,7 @@ function init() { | ||||
|     tools.set("mock", "tools/mock.html"); | ||||
|  | ||||
|     changeActiveTools('XML'); | ||||
|     var toolUrl = window.location.search.substring(1); | ||||
|     if (toolUrl == "") { | ||||
|         loadLastPage(); | ||||
|     } | ||||
|     else if (tools.has(toolUrl)) { | ||||
|         changeTool(toolUrl); | ||||
|  | ||||
|     } | ||||
|      | ||||
|     loadLastPage(); | ||||
| } | ||||
|  | ||||
| /** | ||||
| @@ -77,7 +81,6 @@ function changeTool(tool) { | ||||
|     const url = tools.get(tool); | ||||
|     localStorage.setItem("lastPage", tool); | ||||
|     document.getElementById("iframe").src = url; | ||||
|     window.location.search = tool; | ||||
| } | ||||
|  | ||||
| /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user