aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-06-04 10:47:51 -0300
committerSebastian <sebasjm@gmail.com>2021-06-04 12:42:34 -0300
commite223c012751857fbd048ff8f0503ce8570f495ee (patch)
tree337e87edc5747f766dd7aa8fd41c7c89749b6380 /packages/taler-wallet-webextension
parentb023bb502edf8d62f51257aff2105f3c33713b42 (diff)
handle reset click, still need to delete database but the funcionality is missing for firefox
Diffstat (limited to 'packages/taler-wallet-webextension')
-rw-r--r--packages/taler-wallet-webextension/src/wxBackend.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/taler-wallet-webextension/src/wxBackend.ts b/packages/taler-wallet-webextension/src/wxBackend.ts
index 57146c0f5..cb7b9295f 100644
--- a/packages/taler-wallet-webextension/src/wxBackend.ts
+++ b/packages/taler-wallet-webextension/src/wxBackend.ts
@@ -120,6 +120,10 @@ async function dispatch(
r = wrapResponse(await getDiagnostics());
break;
}
+ case "reset-db": {
+ r = wrapResponse(await reinitWallet());
+ break;
+ }
case "wxGetExtendedPermissions": {
const res = await new Promise((resolve, reject) => {
getPermissionsApi().contains(extendedPermissions, (result: boolean) => {