@wagmi/connectors 3.1.4 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -153,7 +153,7 @@ var InjectedConnector = class extends Connector {
|
|
|
153
153
|
if (typeof window === "undefined")
|
|
154
154
|
return;
|
|
155
155
|
const ethereum = window.ethereum;
|
|
156
|
-
if (ethereum?.providers)
|
|
156
|
+
if (ethereum?.providers && ethereum.providers.length > 0)
|
|
157
157
|
return ethereum.providers[0];
|
|
158
158
|
return ethereum;
|
|
159
159
|
},
|
package/dist/injected.js
CHANGED
package/dist/metaMask.js
CHANGED