File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,11 @@ const userGitHubName = document.getElementById("user-gh-name");
1515async 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 }
You can’t perform that action at this time.
0 commit comments