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

@@ -16,8 +16,15 @@ document.addEventListener('DOMContentLoaded', function () {
} }
// Update the url // Update the url
const params = new URLSearchParams(); var params;
params.append('url', url); if (window.location.search){
params = new URLSearchParams(window.location.search);
params.set('url', url);
}
else {
params = new URLSearchParams();
params.append('url', url);
}
history.pushState(null, null, `?${params.toString()}`); history.pushState(null, null, `?${params.toString()}`);
// Show loading state // Show loading state

View File

@@ -14,8 +14,15 @@ function getSSL() {
// Get the input value // Get the input value
const domain = document.getElementById("domain").value.trim().toLowerCase(); const domain = document.getElementById("domain").value.trim().toLowerCase();
// Set the domain parameter // Set the domain parameter
const params = new URLSearchParams(); var params;
params.append("domain", domain); 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 // Add the parameters to the URL
const url = `/?${params.toString()}`; const url = `/?${params.toString()}`;
// Push the URL to the history // Push the URL to the history