fix: make unavailable sites clickable
This commit is contained in:
+2
-2
@@ -68,7 +68,7 @@ export class DomainFactory {
|
||||
const word = this.randomWord(lang);
|
||||
const domain = this.randomDomain(word);
|
||||
if (domain) {
|
||||
const output = { name: domain, searching: false, available: false };
|
||||
const output = { name: domain, searching: false, available: true };
|
||||
this.history.push(output);
|
||||
resolve(output);
|
||||
return;
|
||||
@@ -91,7 +91,7 @@ export class DomainFactory {
|
||||
) {
|
||||
const domain = `${escapedWord.substring(0, escapedWord.length - tldEscaped.length)}.${tld}`;
|
||||
if (!domain.includes("-.")) {
|
||||
const output = { name: domain, searching: false, available: false };
|
||||
const output = { name: domain, searching: false, available: true };
|
||||
this.history.push(output);
|
||||
domains.push(output);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user