summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/wxBackend.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-05-07 18:10:27 -0300
committerSebastian <sebasjm@gmail.com>2021-05-07 18:16:30 -0300
commit4ed4535bc090acf3e5a3b7781ba458d077aac751 (patch)
treee1c6af8a7e4c17b67992c824fb172b1bcd61601e /packages/taler-wallet-webextension/src/wxBackend.ts
parent30f86f8748a0d9c23538e972d30270a4f1e83941 (diff)
downloadwallet-core-4ed4535bc090acf3e5a3b7781ba458d077aac751.tar.gz
wallet-core-4ed4535bc090acf3e5a3b7781ba458d077aac751.tar.bz2
wallet-core-4ed4535bc090acf3e5a3b7781ba458d077aac751.zip
preact routing on the wallet
Diffstat (limited to 'packages/taler-wallet-webextension/src/wxBackend.ts')
-rw-r--r--packages/taler-wallet-webextension/src/wxBackend.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/taler-wallet-webextension/src/wxBackend.ts b/packages/taler-wallet-webextension/src/wxBackend.ts
index 22dd2c0e3..57146c0f5 100644
--- a/packages/taler-wallet-webextension/src/wxBackend.ts
+++ b/packages/taler-wallet-webextension/src/wxBackend.ts
@@ -276,7 +276,7 @@ try {
chrome.runtime.onInstalled.addListener((details) => {
console.log("onInstalled with reason", details.reason);
if (details.reason === "install") {
- const url = chrome.extension.getURL("/static/welcome.html");
+ const url = chrome.extension.getURL("/static/popup.html#/welcome");
chrome.tabs.create({ active: true, url: url });
}
});
@@ -311,7 +311,7 @@ function headerListener(
switch (uriType) {
case TalerUriType.TalerWithdraw:
return makeSyncWalletRedirect(
- "/static/withdraw.html",
+ "/static/popup.html#/withdraw",
details.tabId,
details.url,
{
@@ -320,7 +320,7 @@ function headerListener(
);
case TalerUriType.TalerPay:
return makeSyncWalletRedirect(
- "/static/pay.html",
+ "/static/popup.html#/pay",
details.tabId,
details.url,
{
@@ -329,7 +329,7 @@ function headerListener(
);
case TalerUriType.TalerTip:
return makeSyncWalletRedirect(
- "/static/tip.html",
+ "/static/popup.html#/tip",
details.tabId,
details.url,
{
@@ -338,7 +338,7 @@ function headerListener(
);
case TalerUriType.TalerRefund:
return makeSyncWalletRedirect(
- "/static/refund.html",
+ "/static/popup.html#/refund",
details.tabId,
details.url,
{