Skip to content

Commit

Permalink
Merge pull request #59 from multiversx/development
Browse files Browse the repository at this point in the history
0.4.2
  • Loading branch information
arhtudormorar authored Aug 23, 2024
2 parents 34aea43 + 02e9098 commit 45d0816
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Update README](https://github.com/multiversx/mx-sdk-js-web-wallet-cross-window-provider/pull/55)


## [[0.4.2](https://github.com/multiversx/mx-sdk-js-web-wallet-cross-window-provider/pull/59)] - 2024-08-12
- [Added ability to close window before login](https://github.com/multiversx/mx-sdk-js-web-wallet-cross-window-provider/pull/58)

## [[0.4.1](https://github.com/multiversx/mx-sdk-js-web-wallet-cross-window-provider/pull/57)] - 2024-08-12
- [Fix SSR support](https://github.com/multiversx/mx-sdk-js-web-wallet-cross-window-provider/pull/56)

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiversx/sdk-web-wallet-cross-window-provider",
"version": "0.4.1",
"version": "0.4.2",
"description": "Signing provider for dApps: Cross Window",
"main": "out/index.js",
"types": "out/index.d.js",
Expand Down
7 changes: 6 additions & 1 deletion src/CrossWindowProvider/CrossWindowProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ export class CrossWindowProvider {
};
}

async dispose(): Promise<boolean> {
const connectionClosed = await this.windowManager.closeConnection();
return connectionClosed;
}

async logout(): Promise<boolean> {
const popupConsentResponse = await this.openPopupConsent();

Expand All @@ -147,7 +152,7 @@ export class CrossWindowProvider {
}

this.ensureConnected();
const connectionClosed = await this.windowManager.closeConnection();
const connectionClosed = await this.dispose();
this.initialized = false;
this.disconnect();

Expand Down

0 comments on commit 45d0816

Please sign in to comment.