Implemented dynamic host finding

This commit is contained in:
2023-02-03 12:12:17 +01:00
parent e50a9dd95a
commit e0f7c48801
4 changed files with 20 additions and 4 deletions

View 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")
});