fix: Update params to allow both ssl and curl checks
All checks were successful
Build Docker / BuildImage (push) Successful in 31s

This commit is contained in:
2025-02-27 15:08:09 +11:00
parent 964779136c
commit ec59656cad
2 changed files with 18 additions and 4 deletions

View File

@@ -14,8 +14,15 @@ function getSSL() {
// Get the input value
const domain = document.getElementById("domain").value.trim().toLowerCase();
// Set the domain parameter
const params = new URLSearchParams();
params.append("domain", domain);
var params;
if (window.location.search){
params = new URLSearchParams(window.location.search);
params.set("domain", domain);
}
else {
params = new URLSearchParams();
params.append("domain", domain);
}
// Add the parameters to the URL
const url = `/?${params.toString()}`;
// Push the URL to the history