remove http(s)// from server_name

This commit is contained in:
Jordan Blasenhauer 2024-03-16 20:56:33 +01:00
parent fdcda95912
commit 2394118844

View file

@ -416,7 +416,7 @@
updateResume() {
this.resumeEl.textContent = `http${
this.sslCheck.getAttribute("data-checked") === "true" ? "s" : ""
}://${this.servInp.value}${this.urlInp.value}`;
}://${this.servInp.value.replace('https://', '').replace('http://', '')}${this.urlInp.value}`;
}
}
@ -562,7 +562,7 @@
const api = `http${
this.sslCheck.getAttribute("data-checked") === "true" ? "s" : ""
}://${this.servInp.value}${this.urlInp.value}`;
}://${this.servInp.value.replace('https://', '').replace('http://', '')}${this.urlInp.value}`;
fetch(window.location.href, {
method: "POST",