diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-10-13 02:36:33 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-10-13 02:36:33 +0200 |
commit | e4cafe672d07781c4cfcfa3b9d0e062ce367646c (patch) | |
tree | 7ad8b213a898236dee02a140207af301e8d400e4 /popup | |
parent | 250069d86097a966366d21e447f6c3fcc70659bd (diff) |
manual refresh triggering
Diffstat (limited to 'popup')
-rw-r--r-- | popup/popup.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/popup/popup.tsx b/popup/popup.tsx index 5364b4170..ec9aee7f7 100644 --- a/popup/popup.tsx +++ b/popup/popup.tsx @@ -52,9 +52,9 @@ class Router extends preact.Component<any,any> { } static onRoute(f: any): () => void { - this.routeHandlers.push(f); + Router.routeHandlers.push(f); return () => { - let i = this.routeHandlers.indexOf(f); + let i = Router.routeHandlers.indexOf(f); this.routeHandlers = this.routeHandlers.splice(i, 1); } } @@ -391,6 +391,9 @@ function WalletDebug(props: any) { <button onClick={openExtensionPage("pages/show-db.html")}> show db </button> + <button onClick={openExtensionPage("pages/tree.html")}> + show tree + </button> <br /> <button onClick={confirmReset}> reset |