Skip to content

Commit 55c7964

Browse files
authored
Update available.html
1 parent e597366 commit 55c7964

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

available.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,17 @@
1919

2020
<body>
2121
<h1>Available Domain</h1>
22-
<p>The subdomain <span id="subdomainName"></span>.is-a.dev is available for registration, completely for free! </p>
22+
<p>The subdomain <span id="subdomain"></span>.is-a.dev is available for registration, completely for free!</p>
2323
<a href="/">Return to the homepage to learn more about registering is-a.dev subdomains.</a>
2424

2525
<script>
2626
const params = new URLSearchParams(window.location.search);
27-
const subdomain = params.get("subdomain");
27+
const subdomain = params.get("d");
2828
if (subdomain) {
29-
const el = document.getElementById("subdomainName");
30-
if (el) { el.textContent = subdomain; }
29+
const el = document.getElementById("subdomain");
30+
if (el) el.textContent = subdomain;
31+
} else {
32+
window.location = "https://is-a.dev";
3133
}
3234
</script>
3335
</body>

0 commit comments

Comments
 (0)