fix: auto login inside imtoken browser
This commit is contained in:
@@ -138,7 +138,7 @@ export function getInjectedEthereum(): EthereumProvider | null {
|
||||
return maybeWindow.ethereum ?? null;
|
||||
}
|
||||
|
||||
function isImTokenBrowser(): boolean {
|
||||
export function isImTokenBrowser(): boolean {
|
||||
if (typeof navigator === "undefined") return false;
|
||||
return /imtoken/i.test(navigator.userAgent || "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user