fix: updating the title is better that location.hash
This commit is contained in:
parent
f16ff53cf4
commit
fff43ad0ed
@ -28,7 +28,7 @@ export function Routing(): VNode {
|
|||||||
<Router history={history}>
|
<Router history={history}>
|
||||||
<Route path="/public-accounts" component={PublicHistoriesPage} />
|
<Route path="/public-accounts" component={PublicHistoriesPage} />
|
||||||
<Route path="/register" component={RegistrationPage} />
|
<Route path="/register" component={RegistrationPage} />
|
||||||
<Route path="/account/:id*" component={AccountPage} />
|
<Route path="/account" component={AccountPage} />
|
||||||
<Route default component={Redirect} to="/account" />
|
<Route default component={Redirect} to="/account" />
|
||||||
</Router>
|
</Router>
|
||||||
);
|
);
|
||||||
|
@ -31,7 +31,9 @@ export function QrCodeSection({
|
|||||||
//Taler Wallet WebExtension is listening to headers response and tab updates.
|
//Taler Wallet WebExtension is listening to headers response and tab updates.
|
||||||
//In the SPA there is no header response with the Taler URI so
|
//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.
|
//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 (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user