Skip to content

Commit

Permalink
Tm/fix/require-popup-consent (#32)
Browse files Browse the repository at this point in the history
* Try require popupconsent

* 0.0.38-alpha.0

* 0.0.38-alpha.1

* 0.0.39
  • Loading branch information
arhtudormorar authored Apr 23, 2024
1 parent 5c967bd commit 6385b88
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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.0.38",
"version": "0.0.39",
"description": "Signing provider for dApps: Cross Window",
"main": "out/index.js",
"types": "out/index.d.js",
Expand Down
4 changes: 2 additions & 2 deletions src/CrossWindowProvider/CrossWindowProvider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { SignableMessage, Transaction } from '@multiversx/sdk-core';
import { WindowManager } from '../WindowManager';
import { safeWindow } from '../constants';
import {
ErrAccountNotConnected,
Expand All @@ -17,7 +16,7 @@ import {
CrossWindowProviderResponseEnums,
SignMessageStatusEnum
} from '../types';
import './PopupConsent';
import { WindowManager } from '../WindowManager';
import { PopupConsent, confirmationDialogTag } from './PopupConsent';

interface ICrossWindowWalletAccount {
Expand Down Expand Up @@ -289,6 +288,7 @@ export class CrossWindowProvider {
}

protected async openPopupConsent(): Promise<boolean> {
require('./PopupConsent');
const dialog = safeWindow.document?.createElement('div');
const document = safeWindow.document;

Expand Down

0 comments on commit 6385b88

Please sign in to comment.