initialization for webextension

This commit is contained in:
Sebastian 2021-08-09 10:40:17 -03:00
parent 425ea0fbca
commit 2ec3f4a5d5
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -34,6 +34,7 @@ import {
DbAccess, DbAccess,
WalletStoresV1, WalletStoresV1,
Wallet, Wallet,
WalletApiOperation,
} from "@gnu-taler/taler-wallet-core"; } from "@gnu-taler/taler-wallet-core";
import { import {
classifyTalerUri, classifyTalerUri,
@ -260,6 +261,7 @@ async function reinitWallet(): Promise<void> {
http, http,
new BrowserCryptoWorkerFactory(), new BrowserCryptoWorkerFactory(),
); );
await wallet.handleCoreApiRequest("initWallet", "native-init", {});
wallet.addNotificationListener((x) => { wallet.addNotificationListener((x) => {
for (const x of notificationPorts) { for (const x of notificationPorts) {
try { try {