diff options
author | Sebastian <sebasjm@gmail.com> | 2022-12-22 18:42:18 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-12-22 18:42:18 -0300 |
commit | dc002f99a96752d3f0a10efe44a8a4d0503e8529 (patch) | |
tree | 52ae5cc1239a6aafb6e2f18b774d1d4f4d2afa60 /packages/taler-wallet-webextension/src/wxBackend.ts | |
parent | 5c84c3273668fa5aaeb2ac040eb7b13ad439549c (diff) | |
download | wallet-core-dc002f99a96752d3f0a10efe44a8a4d0503e8529.tar.xz |
support for ext+taler:// while taler:// is not yet allowed as scheme
Diffstat (limited to 'packages/taler-wallet-webextension/src/wxBackend.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/wxBackend.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/wxBackend.ts b/packages/taler-wallet-webextension/src/wxBackend.ts index dca239de6..0f0beb41f 100644 --- a/packages/taler-wallet-webextension/src/wxBackend.ts +++ b/packages/taler-wallet-webextension/src/wxBackend.ts @@ -298,7 +298,10 @@ async function reinitWallet(): Promise<void> { return walletInit.resolve(); } -function parseTalerUriAndRedirect(tabId: number, talerUri: string): void { +function parseTalerUriAndRedirect(tabId: number, maybeTalerUri: string): void { + const talerUri = maybeTalerUri.startsWith("ext+") + ? maybeTalerUri.substring(4) + : maybeTalerUri; const uriType = classifyTalerUri(talerUri); switch (uriType) { case TalerUriType.TalerWithdraw: |