From e4cafe672d07781c4cfcfa3b9d0e062ce367646c Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 13 Oct 2016 02:36:33 +0200 Subject: manual refresh triggering --- popup/popup.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'popup/popup.tsx') 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 { } 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) { +