diff options
author | Sebastian <sebasjm@gmail.com> | 2023-11-06 14:48:35 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-11-06 14:48:35 -0300 |
commit | 656fcae88c183ebb2c0d61c94ea763b110cae918 (patch) | |
tree | 49b6b6e62fe47c73ce4bdff6eca4ba1acb835d14 /packages/taler-wallet-webextension/src/platform/chrome.ts | |
parent | 35369bdc722780eab5e9cd08703cf72d718b0dba (diff) | |
download | wallet-core-656fcae88c183ebb2c0d61c94ea763b110cae918.tar.xz |
show kyc requirement
Diffstat (limited to 'packages/taler-wallet-webextension/src/platform/chrome.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/platform/chrome.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/taler-wallet-webextension/src/platform/chrome.ts b/packages/taler-wallet-webextension/src/platform/chrome.ts index 4fb4bddfd..a4394be2c 100644 --- a/packages/taler-wallet-webextension/src/platform/chrome.ts +++ b/packages/taler-wallet-webextension/src/platform/chrome.ts @@ -55,6 +55,7 @@ const api: BackgroundPlatformAPI & ForegroundPlatformAPI = { listenToAllChannels: listenToAllChannels as any, registerReloadOnNewVersion, sendMessageToAllChannels, + openNewURLFromPopup, sendMessageToBackground, useServiceWorkerAsBackgroundProcess, keepAlive, @@ -266,6 +267,13 @@ function openWalletPageFromPopup(page: string): void { chrome.tabs.create({ active: true, url }, () => { window.close(); }); + +} +function openNewURLFromPopup(url: URL): void { + // const url = chrome.runtime.getURL(`/static/wallet.html#${page}`); + chrome.tabs.create({ active: true, url: url.href }, () => { + window.close(); + }); } let nextMessageIndex = 0; |