Implemented dynamic host finding
This commit is contained in:
8
Frontend/assets/scripts/dyn_host.js
Normal file
8
Frontend/assets/scripts/dyn_host.js
Normal file
@@ -0,0 +1,8 @@
|
||||
$(document).ready( function() {
|
||||
document.getElementsByName("iframe")[0].src =
|
||||
window.location.protocol + "//" + window.location.hostname + ":8097";
|
||||
document.getElementById("rest-mock").href =
|
||||
window.location.protocol + "//" + window.location.hostname + ":8097";
|
||||
console.log("DONE")
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user