generated from nathanwoodburn/python-webserver-template
fix: Update params to allow both ssl and curl checks
All checks were successful
Build Docker / BuildImage (push) Successful in 31s
All checks were successful
Build Docker / BuildImage (push) Successful in 31s
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user