[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: use redirect instead of openF
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: use redirect instead of openFromPopup on qr detection |
Date: |
Mon, 22 May 2023 19:37:05 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new bc4964d4f use redirect instead of openFromPopup on qr detection
bc4964d4f is described below
commit bc4964d4ffb39bb5c2fe8ec16dce4851f2e968f8
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon May 22 14:36:59 2023 -0300
use redirect instead of openFromPopup on qr detection
---
packages/taler-wallet-webextension/src/NavigationBar.tsx | 5 ++++-
.../taler-wallet-webextension/src/wallet/Application.tsx | 12 ++++++++++--
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/packages/taler-wallet-webextension/src/NavigationBar.tsx
b/packages/taler-wallet-webextension/src/NavigationBar.tsx
index 2817f3299..8a41ee68e 100644
--- a/packages/taler-wallet-webextension/src/NavigationBar.tsx
+++ b/packages/taler-wallet-webextension/src/NavigationBar.tsx
@@ -59,7 +59,10 @@ function replaceAll(
): string {
let result = pattern;
for (const v in vars) {
- result = result.replace(vars[v], !values[v] ? "" : values[v]);
+ result = result.replace(
+ vars[v],
+ !values[v] ? "" : encodeURIComponent(values[v]),
+ );
}
return result;
}
diff --git a/packages/taler-wallet-webextension/src/wallet/Application.tsx
b/packages/taler-wallet-webextension/src/wallet/Application.tsx
index 194e34e6d..aef271442 100644
--- a/packages/taler-wallet-webextension/src/wallet/Application.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx
@@ -20,7 +20,11 @@
* @author sebasjm
*/
-import { TalerUri, TranslatedString } from "@gnu-taler/taler-util";
+import {
+ TalerUri,
+ TranslatedString,
+ stringifyTalerUri,
+} from "@gnu-taler/taler-util";
import {
TranslationProvider,
useTranslationContext,
@@ -103,7 +107,11 @@ export function Application(): VNode {
<WalletTemplate goToTransaction={redirectToTxInfo}>
<QrReaderPage
onDetected={(talerActionUrl: TalerUri) => {
- platform.openWalletURIFromPopup(talerActionUrl);
+ redirectTo(
+ Pages.defaultCta({
+ uri: stringifyTalerUri(talerActionUrl),
+ }),
+ );
}}
/>
</WalletTemplate>
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: use redirect instead of openFromPopup on qr detection,
gnunet <=