Skip to content

Commit

Permalink
fixup! feat(connect): add internal _sessionsBackgroundUrl setting to …
Browse files Browse the repository at this point in the history
…connect
  • Loading branch information
mroz22 committed Sep 9, 2024
1 parent 3b0ea62 commit b9f7140
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion suite-common/connect-init/src/connectInitThunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Check failure on line 11 in suite-common/connect-init/src/connectInitThunks.ts

View workflow job for this annotation

GitHub Actions / Linting and formatting

'@trezor/env-utils' should be listed in the project's dependencies. Run 'npm i -S @trezor/env-utils' to add it

import { cardanoConnectPatch } from './cardanoConnectPatch';

Expand Down Expand Up @@ -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,
'/',
Expand Down

0 comments on commit b9f7140

Please sign in to comment.