diff --git a/suite-common/connect-init/src/connectInitThunks.ts b/suite-common/connect-init/src/connectInitThunks.ts index cfb0084272a2..8e248e130cbc 100644 --- a/suite-common/connect-init/src/connectInitThunks.ts +++ b/suite-common/connect-init/src/connectInitThunks.ts @@ -8,6 +8,7 @@ import TrezorConnect, { } from '@trezor/connect'; import { getSynchronize } from '@trezor/utils'; import { deviceConnectThunks } from '@suite-common/wallet-core'; +import { getLocationOrigin } from '@trezor/env-utils'; import { cardanoConnectPatch } from './cardanoConnectPatch'; @@ -109,7 +110,7 @@ export const connectInitThunk = createThunk( cardanoConnectPatch(getEnabledNetworks); const sessionsBackground = - window.location.origin + + getLocationOrigin() + `${process.env.ASSET_PREFIX || ''}/static/connect/workers/sessions-background-sharedworker.js`.replaceAll( /\/+/g, '/',