summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-12-07 12:50:54 -0300
committerSebastian <sebasjm@gmail.com>2022-12-07 16:08:18 -0300
commitfff43ad0ede5725271ef99c68e3c9358cd68c501 (patch)
tree0e700b00f38ea9f79a840c6936252ed067219eee
parentf16ff53cf4175d323dd261485415779387fcac65 (diff)
downloadwallet-core-fff43ad0ede5725271ef99c68e3c9358cd68c501.tar.gz
wallet-core-fff43ad0ede5725271ef99c68e3c9358cd68c501.tar.bz2
wallet-core-fff43ad0ede5725271ef99c68e3c9358cd68c501.zip
fix: updating the title is better that location.hash
-rw-r--r--packages/demobank-ui/src/pages/Routing.tsx2
-rw-r--r--packages/demobank-ui/src/pages/home/QrCodeSection.tsx4
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/demobank-ui/src/pages/Routing.tsx b/packages/demobank-ui/src/pages/Routing.tsx
index 7f079a7de..6b00df97b 100644
--- a/packages/demobank-ui/src/pages/Routing.tsx
+++ b/packages/demobank-ui/src/pages/Routing.tsx
@@ -28,7 +28,7 @@ export function Routing(): VNode {
<Router history={history}>
<Route path="/public-accounts" component={PublicHistoriesPage} />
<Route path="/register" component={RegistrationPage} />
- <Route path="/account/:id*" component={AccountPage} />
+ <Route path="/account" component={AccountPage} />
<Route default component={Redirect} to="/account" />
</Router>
);
diff --git a/packages/demobank-ui/src/pages/home/QrCodeSection.tsx b/packages/demobank-ui/src/pages/home/QrCodeSection.tsx
index 1d7b3db10..7c262fdc6 100644
--- a/packages/demobank-ui/src/pages/home/QrCodeSection.tsx
+++ b/packages/demobank-ui/src/pages/home/QrCodeSection.tsx
@@ -31,7 +31,9 @@ export function QrCodeSection({
//Taler Wallet WebExtension is listening to headers response and tab updates.
//In the SPA there is no header response with the Taler URI so
//this hack manually triggers the tab update after the QR is in the DOM.
- window.location.hash = `/account/${new Date().getTime()}`;
+ // WebExtension will be using
+ // https://developer.chrome.com/docs/extensions/reference/tabs/#event-onUpdated
+ document.title = `${document.title} ${talerWithdrawUri}`;
}, []);
return (