Remove GitHub provider hacking code.

This commit is contained in:
Yang Luo
2022-03-19 19:43:54 +08:00
parent 865a65d399
commit a95c5b05a9
2 changed files with 18 additions and 26 deletions

View File

@ -70,15 +70,7 @@ export function isProviderVisible(providerItem) {
return false;
}
if (providerItem.provider.type === "GitHub") {
if (isLocalhost()) {
return providerItem.provider.name.includes("localhost");
} else {
return !providerItem.provider.name.includes("localhost");
}
} else {
return true;
}
return true;
}
export function isProviderVisibleForSignUp(providerItem) {