Skip to content

Commit

Permalink
fixup! feat: providers are now consumed from the service worker inste…
Browse files Browse the repository at this point in the history
…ad of the UI script
  • Loading branch information
mkazlauskas committed Nov 4, 2024
1 parent 8d9d021 commit 2828a83
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { runtime, storage as webStorage } from 'webextension-polyfill';
import { of, combineLatest, map, EMPTY, filter, BehaviorSubject } from 'rxjs';
import { of, combineLatest, map, EMPTY, BehaviorSubject } from 'rxjs';
import { getProviders } from './config';
import {
DEFAULT_LOOK_AHEAD_SEARCH,
Expand Down Expand Up @@ -76,7 +76,7 @@ const walletFactory: WalletFactory<Wallet.WalletMetadata, Wallet.AccountMetadata
// Sanchonet does not have a handle provider
const supportsHandleResolver = chainName !== 'Sanchonet';

// This is used in place of the handle provider for environments where the handle provider is not available
// This is used in place ofgetProviders the handle provider for environments where the handle provider is not available
const noopHandleResolver: HandleProvider = {
resolveHandles: async () => [],
healthCheck: async () => ({ ok: true }),
Expand Down Expand Up @@ -241,7 +241,7 @@ walletManager

exposeApi(
{
api$: currentWalletProviders$.pipe(filter((providers) => providers !== null)),
api$: currentWalletProviders$,
baseChannel: Wallet.walletProvidersChannel(process.env.WALLET_NAME),
properties: Wallet.walletProvidersProperties
},
Expand Down

0 comments on commit 2828a83

Please sign in to comment.