From e1c5f7031bde84ff7ce94b7911cd9bac1b8836ac Mon Sep 17 00:00:00 2001 From: Tudor Morar Date: Tue, 3 Dec 2024 19:10:54 +0200 Subject: [PATCH] Use safwindow --- src/core/providers/helpers/getConfig.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/providers/helpers/getConfig.ts b/src/core/providers/helpers/getConfig.ts index 17fb126..1b92726 100644 --- a/src/core/providers/helpers/getConfig.ts +++ b/src/core/providers/helpers/getConfig.ts @@ -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;