From 06458cfd10f530ef81ef72dba2adbda00a0c0a28 Mon Sep 17 00:00:00 2001 From: Adam Bem Date: Fri, 3 Feb 2023 14:57:46 +0100 Subject: [PATCH] Removed unused code --- .../src/main/resources/static/js/dyn_host.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Backend/mocked-services/src/main/resources/static/js/dyn_host.js b/Backend/mocked-services/src/main/resources/static/js/dyn_host.js index 14f19ae..b13a6e1 100644 --- a/Backend/mocked-services/src/main/resources/static/js/dyn_host.js +++ b/Backend/mocked-services/src/main/resources/static/js/dyn_host.js @@ -1,23 +1,9 @@ -// $(document).ready( function() { -// console.log("Here") -// let links = document.getElementsByTagName("link") -// for (let e in links) { -// let oldStr = links[e].href.split("/") -// console.log(oldStr) -// let endpoint = oldStr.slice(3).join() -// console.log(endpoint) -// e.href = window.location.protocol + "//" + window.location.hostname + "/" + endpoint -// } -// }); - $(document).ready( function() { console.log("Here") let links = document.getElementsByTagName("link") for (let i = 0; i < links.length; i++) { let oldStr = links[i].href.split("/") - console.log(oldStr) let endpoint = oldStr.slice(3).join("/") - console.log(endpoint) links[i].href = window.location.protocol + "//" + window.location.hostname + ":8086/" + endpoint }