File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export type Mode = 'light' | 'dark' | 'auto'
33
33
export type CustomTheme = any // TODO: define type
34
34
export const connectorIds = [ 'injected' , 'walletConnect' , 'desktopWallet' ] as const
35
35
export type ConnectorId = ( typeof connectorIds ) [ number ]
36
- export type InjectedProviderId = 'Alephium' | 'OneKey'
36
+ export type InjectedProviderId = string
37
37
38
38
export type CustomStyle = {
39
39
theme ?: Theme
Original file line number Diff line number Diff line change @@ -106,7 +106,10 @@ export function getInjectedProviderId(provider: AlephiumWindowObject): InjectedP
106
106
if ( provider . icon . includes ( 'onekey' ) ) {
107
107
return 'OneKey'
108
108
}
109
- return 'Alephium'
109
+ if ( provider . id === 'alephium' && provider . name === 'Alephium' ) {
110
+ return 'Alephium'
111
+ }
112
+ return provider . name
110
113
}
111
114
112
115
export async function getInjectedProvider (
You can’t perform that action at this time.
0 commit comments