aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-03 15:32:48 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-03 15:32:48 +0200
commite0c9d480a73fa629c1e4a47d3e721f1d2d345406 (patch)
treef64c308af06109d682b909080330461032f3e988
parent062535770e1dabcdd2e1655f41ce01006a38af1a (diff)
show log when log page is loaded
-rw-r--r--src/pages/logs.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/logs.tsx b/src/pages/logs.tsx
index 716eebae6..a1e5161ec 100644
--- a/src/pages/logs.tsx
+++ b/src/pages/logs.tsx
@@ -77,6 +77,6 @@ class Logs extends React.Component<any, LogsState> {
}
}
-export function main() {
+document.addEventListener("DOMContentLoaded", () => {
ReactDOM.render(<Logs />, document.getElementById("container")!);
-}
+});