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/platform/chrome.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/platform/chrome.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/platform/chrome.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/platform/chrome.ts b/packages/taler-wallet-webextension/src/platform/chrome.ts index b7b0c6640..744283913 100644 --- a/packages/taler-wallet-webextension/src/platform/chrome.ts +++ b/packages/taler-wallet-webextension/src/platform/chrome.ts @@ -233,7 +233,10 @@ function notifyWhenAppIsReady(callback: () => void): void { } } -function openWalletURIFromPopup(talerUri: string): void { +function openWalletURIFromPopup(maybeTalerUri: string): void { + const talerUri = maybeTalerUri.startsWith("ext+") + ? maybeTalerUri.substring(4) + : maybeTalerUri; const uriType = classifyTalerUri(talerUri); let url: string | undefined = undefined; |