Skip to content

Commit b2ce047

Browse files
authored
Update subdomain-availability.js
1 parent 43dc7c4 commit b2ce047

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/subdomain-availability.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ const userGitHubName = document.getElementById("user-gh-name");
1515
async function fetchReservedDomains() {
1616
try {
1717
if (!reservedDomains) {
18-
const response = await fetch("https://raw.githubusercontent.com/is-a-dev/register/main/util/reserved.json");
19-
if (!response.ok) throw new Error(`Failed to fetch reserved domains: ${response.statusText}`);
20-
reservedDomains = await response.json();
18+
const res1 = await fetch("https://raw.githubusercontent.com/is-a-dev/register/main/util/reserved.json");
19+
if (!res1.ok) throw new Error(`Failed to fetch reserved domains: ${res1.statusText}`);
20+
const res2 = await fetch("https://raw.githubusercontent.com/is-a-dev/register/main/util/internal.json");
21+
if (!res2.ok) throw new Error(`Failed to fetch internal domains: ${res2.statusText}`);
22+
reservedDomains = [...await res1.json(), ...await res2.json()];
2123
searchDomain.disabled = false;
2224
searchDomain.placeholder = "e.g. john";
2325
}

0 commit comments

Comments
 (0)