Removed unused code
This commit is contained in:
@@ -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() {
|
$(document).ready( function() {
|
||||||
console.log("Here")
|
console.log("Here")
|
||||||
let links = document.getElementsByTagName("link")
|
let links = document.getElementsByTagName("link")
|
||||||
for (let i = 0; i < links.length; i++) {
|
for (let i = 0; i < links.length; i++) {
|
||||||
let oldStr = links[i].href.split("/")
|
let oldStr = links[i].href.split("/")
|
||||||
console.log(oldStr)
|
|
||||||
let endpoint = oldStr.slice(3).join("/")
|
let endpoint = oldStr.slice(3).join("/")
|
||||||
console.log(endpoint)
|
|
||||||
links[i].href = window.location.protocol + "//" + window.location.hostname + ":8086/" + endpoint
|
links[i].href = window.location.protocol + "//" + window.location.hostname + ":8086/" + endpoint
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user