extension-window-closed event not fired[Bug]
Opened this issue · 0 comments
Loque18 commented
Describe the bug
the event "extension-window-closed" is not fired, when I close the extension before completing the authorization
Venom Connect config
this.venomConnect = new VenomConnect({
theme: "dark",
checkNetworkId: 1000,
providersOptions: {
venomwallet: {
walletWaysToConnect: [
{
package: ProviderRpcClient,
packageOptions: {
fallback:
VenomConnect.getPromise("venomwallet", "extension") ||
// eslint-disable-next-line prefer-promise-reject-errors
(() => Promise.reject()),
forceUseFallback: true,
},
// packageOptionsStandalone: {
// fallback: standaloneFallback,
// forceUseFallback: true,
// },
// Setup
id: "extension",
type: "extension",
},
],
defaultWalletWaysToConnect: ["mobile", "ios", "android"],
},
},
});
To Reproduce
this.venomConnect.on("extension-window-closed", async () => {
console.log("extension closed");
});
Expected behavior
to fire the event when a user closes the wallet
Device (please complete the following information):
- Device: Desktop
- OS: Windows
- Browser chrome
- Version latest