diff options
author | Sebastian <sebasjm@gmail.com> | 2021-06-04 10:47:51 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-06-04 12:42:34 -0300 |
commit | e223c012751857fbd048ff8f0503ce8570f495ee (patch) | |
tree | 337e87edc5747f766dd7aa8fd41c7c89749b6380 /packages/taler-wallet-webextension/src | |
parent | b023bb502edf8d62f51257aff2105f3c33713b42 (diff) | |
download | wallet-core-e223c012751857fbd048ff8f0503ce8570f495ee.tar.xz |
handle reset click, still need to delete database but the funcionality is missing for firefox
Diffstat (limited to 'packages/taler-wallet-webextension/src')
-rw-r--r-- | packages/taler-wallet-webextension/src/wxBackend.ts | 4 |
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) => { |