From e0c9d480a73fa629c1e4a47d3e721f1d2d345406 Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
Date: Wed, 3 May 2017 15:32:48 +0200
Subject: show log when log page is loaded

---
 src/pages/logs.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/pages/logs.tsx')

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")!);
-}
+});
-- 
cgit v1.2.3

