We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12ec36c commit fd791b0Copy full SHA for fd791b0
packages/providers/onekey-eth-provider/src/registerEIP6963Provider.ts
@@ -51,12 +51,10 @@ export function registerEIP6963Provider({
51
image: string;
52
provider: ProviderEthereum;
53
}) {
54
- if (
55
- uuid === METAMASK_UUID &&
56
- !METAMASK_OVERRIDE_HOSTNAMES.includes(window.location.hostname) &&
57
- !detectPrivySDK()
58
- ) {
59
- return;
+ if (uuid === METAMASK_UUID) {
+ const allowed: boolean =
+ METAMASK_OVERRIDE_HOSTNAMES.includes(window.location.hostname) || detectPrivySDK();
+ if (!allowed) return;
60
}
61
62
// EIP-6963: https://eips.ethereum.org/EIPS/eip-6963
0 commit comments