Skip to content

Commit

Permalink
Use safwindow
Browse files Browse the repository at this point in the history
  • Loading branch information
arhtudormorar committed Dec 3, 2024
1 parent 41cd963 commit e1c5f70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/providers/helpers/getConfig.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import type { LedgerConnectModal } from '@multiversx/sdk-dapp-core-ui/dist/components/ledger-connect-modal';
import { defineCustomElements } from '@multiversx/sdk-dapp-core-ui/loader';
import { safeWindow } from 'constants/index';
import {
IProviderConfig,
ProviderTypeEnum
} from '../types/providerFactory.types';

export const getConfig = async (config: IProviderConfig = {}) => {
defineCustomElements(window);
defineCustomElements(safeWindow);
const ledgerModalElement = document.createElement(
'ledger-connect-modal'
) as LedgerConnectModal;
Expand Down

0 comments on commit e1c5f70

Please sign in to comment.