diff --git a/src/core/providers/helpers/getConfig.ts b/src/core/providers/helpers/getConfig.ts index 1b92726..70a2b92 100644 --- a/src/core/providers/helpers/getConfig.ts +++ b/src/core/providers/helpers/getConfig.ts @@ -7,6 +7,10 @@ import { } from '../types/providerFactory.types'; export const getConfig = async (config: IProviderConfig = {}) => { + if (!safeWindow.document) { + return config; + } + defineCustomElements(safeWindow); const ledgerModalElement = document.createElement( 'ledger-connect-modal'