-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5579a5
commit c6d699f
Showing
9 changed files
with
100 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/cjs/connectors/injectedConnector.js b/cjs/connectors/injectedConnector.js | ||
index da8347dc2097d71a3145b0b2b0fc5f5112185020..42ef11541025660e09f001097b2d0e460a501c7e 100644 | ||
--- a/cjs/connectors/injectedConnector.js | ||
+++ b/cjs/connectors/injectedConnector.js | ||
@@ -19,6 +19,7 @@ class InjectedConnector extends events_1.EventEmitter { | ||
throw new Error('window is not defined. This should not have happened.'); | ||
} | ||
this.windowProvider = connectorWindowProperty; | ||
+ if(typeof this.windowProvider?.on !== 'function') return | ||
this.windowProvider?.on('connect', async ({ chainId }) => { | ||
await this.calcAccountData(); | ||
}); | ||
diff --git a/connectors/injectedConnector.js b/connectors/injectedConnector.js | ||
index 291db15c0816b98d5827b2e9aa998a1cdd2516c2..a3f8aea0e6dffa3ad08117517d72bc7e482fb3cd 100644 | ||
--- a/connectors/injectedConnector.js | ||
+++ b/connectors/injectedConnector.js | ||
@@ -16,6 +16,7 @@ export class InjectedConnector extends EventEmitter { | ||
throw new Error('window is not defined. This should not have happened.'); | ||
} | ||
this.windowProvider = connectorWindowProperty; | ||
+ if(typeof this.windowProvider?.on !== 'function') return | ||
this.windowProvider?.on('connect', async ({ chainId }) => { | ||
await this.calcAccountData(); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.