From fff43ad0ede5725271ef99c68e3c9358cd68c501 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 7 Dec 2022 12:50:54 -0300
Subject: fix: updating the title is better that location.hash

---
 packages/demobank-ui/src/pages/home/QrCodeSection.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'packages/demobank-ui/src/pages/home/QrCodeSection.tsx')

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 (
-- 
cgit v1.2.3

