generated from nathanwoodburn/python-webserver-template
feat: Add option to set domain in params
All checks were successful
Build Docker / BuildImage (push) Successful in 36s
All checks were successful
Build Docker / BuildImage (push) Successful in 36s
This commit is contained in:
@@ -57,3 +57,14 @@ function getSSL() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// On load check if params are present
|
||||||
|
if (window.location.search) {
|
||||||
|
const params = new URLSearchParams(window.location.search);
|
||||||
|
const domain = params.get('domain');
|
||||||
|
if (domain) {
|
||||||
|
// Add domain to input
|
||||||
|
document.getElementById("domain").value = domain;
|
||||||
|
getSSL(domain);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user