Skip to content

Commit

Permalink
fix: execute tabCheckIn on content-script connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
heisenberg-2077 committed Sep 20, 2024
1 parent 2cbdd30 commit 890af6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@rabby-wallet/eth-walletconnect-keyring": "2.1.3",
"@rabby-wallet/eth-watch-keyring": "1.0.0",
"@rabby-wallet/gnosis-sdk": "1.3.8",
"@rabby-wallet/page-provider": "0.4.0",
"@rabby-wallet/page-provider": "0.4.1-beta.0",
"@rabby-wallet/rabby-action": "0.1.3",
"@rabby-wallet/rabby-api": "0.7.33",
"@rabby-wallet/rabby-security-engine": "2.0.7",
Expand Down
1 change: 1 addition & 0 deletions src/content-script/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const setupExtensionStreams = () => {
pm?.on('message', handlePmMessage);
defer.resolve?.(pm);
pm?.port?.onDisconnect.addListener(onDisconnectDestroyStreams);
bcm.send('message', { event: 'contentScriptConnected' });
};

setupExtensionStreams();
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4721,10 +4721,10 @@
typescript "^4.4.4"
web3-core "^1.6.0"

"@rabby-wallet/page-provider@0.4.0":
version "0.4.0"
resolved "https://registry.yarnpkg.com/@rabby-wallet/page-provider/-/page-provider-0.4.0.tgz#05415914eb469320e6468154f25aa8a815d3e675"
integrity sha512-Z69gzpnyQSG9p3h3VgYRqZkHleZq4sbkJXWTeEbxP49r3Ew2E0R7KHso621dGDbWNjcwjyRGrYyyTjli+u4J8w==
"@rabby-wallet/page-provider@0.4.1-beta.0":
version "0.4.1-beta.0"
resolved "https://registry.yarnpkg.com/@rabby-wallet/page-provider/-/page-provider-0.4.1-beta.0.tgz#5ce6839b4be79f40b3ade5a22325c08754d1543c"
integrity sha512-1hqgKj4it2iFqtIWGD4Atb1cFcUg92l+1p/gUVpIvy59Cr4LGbdMNu6RKS4/m3JsnF3mws64rvNlOFZNM3gOYg==
dependencies:
"@ledgerhq/devices" "^6.27.1"
"@metamask/post-message-stream" "8.1.0"
Expand Down

0 comments on commit 890af6d

Please sign in to comment.