From 51aa6d81464afe92e60f13281d4fda3bb54c45ba Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
Date: Thu, 5 Sep 2019 16:23:54 +0200
Subject: refactor / format

---
 src/webex/pages/benchmark.tsx | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

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

diff --git a/src/webex/pages/benchmark.tsx b/src/webex/pages/benchmark.tsx
index 1d91ac0bd..b250bc20a 100644
--- a/src/webex/pages/benchmark.tsx
+++ b/src/webex/pages/benchmark.tsx
@@ -23,14 +23,13 @@
 
 import * as i18n from "../../i18n";
 
-import { runOnceWhenReady } from "./common";
-
 import { BenchmarkResult } from "../../walletTypes";
 
 import * as wxApi from "../wxApi";
 
 import * as React from "react";
 import * as ReactDOM from "react-dom";
+import { registerMountPage } from "../renderHtml";
 
 
 interface BenchmarkRunnerState {
@@ -103,9 +102,6 @@ class BenchmarkRunner extends React.Component<any, BenchmarkRunnerState> {
   }
 }
 
-
-runOnceWhenReady(() => {
-  ReactDOM.render(<BenchmarkRunner />, document.getElementById("container")!);
-  // Will be used by the backend to detect when the popup gets closed,
-  // so we can clear notifications
+registerMountPage(() => {
+  return <BenchmarkRunner />;
 });
-- 
cgit v1.2.3

