From 290459133226503bcbc16f7dc3cb04d7abdc6735 Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
Date: Mon, 5 Jun 2017 03:20:28 +0200
Subject: pretty reset page

---
 src/webex/pages/popup.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/webex/pages/popup.tsx')

diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx
index 831147f1e..f1f0353ad 100644
--- a/src/webex/pages/popup.tsx
+++ b/src/webex/pages/popup.tsx
@@ -36,6 +36,7 @@ import {
 } from "../../types";
 
 import { abbrev, renderAmount } from "../renderHtml";
+import * as wxApi from "../wxApi";
 
 import * as React from "react";
 import * as ReactDOM from "react-dom";
@@ -484,7 +485,7 @@ function reload() {
 function confirmReset() {
   if (confirm("Do you want to IRREVOCABLY DESTROY everything inside your" +
               " wallet and LOSE ALL YOUR COINS?")) {
-    chrome.runtime.sendMessage({type: "reset"});
+    wxApi.resetDb();
     window.close();
   }
 }
-- 
cgit v1.2.3

