Updated accidently outdated on creation #10
| @@ -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 | ||||
|     } | ||||
|      | ||||
|   | ||||
		Reference in New Issue
	
	Block a user