diff --git a/templates/assets/js/index.js b/templates/assets/js/index.js index 141516f..c957bbc 100644 --- a/templates/assets/js/index.js +++ b/templates/assets/js/index.js @@ -56,4 +56,15 @@ function getSSL() {

${error.message}

`; }); +} + +// 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); + } } \ No newline at end of file