Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension-window-closed event not fired[Bug] #38

Open
Loque18 opened this issue Sep 20, 2023 · 0 comments
Open

extension-window-closed event not fired[Bug] #38

Loque18 opened this issue Sep 20, 2023 · 0 comments
Assignees

Comments

@Loque18
Copy link

Loque18 commented Sep 20, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@rightjelkin @Loque18 and others