aboutsummaryrefslogtreecommitdiff
path: root/src/webex/pages/benchmark.tsx
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-09-05 16:23:54 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-09-05 16:23:54 +0200
commit51aa6d81464afe92e60f13281d4fda3bb54c45ba (patch)
treebdd7bd364d7af067976c276c5ee9065dac0133a5 /src/webex/pages/benchmark.tsx
parent8144b0f5535c3d00c1e508cddce3cd88a153a581 (diff)
downloadwallet-core-51aa6d81464afe92e60f13281d4fda3bb54c45ba.tar.xz
refactor / format
Diffstat (limited to 'src/webex/pages/benchmark.tsx')
-rw-r--r--src/webex/pages/benchmark.tsx10
1 files changed, 3 insertions, 7 deletions
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 />;
});