From d939ca662ee24544564fb3b63f8efa8c3999686b Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 25 Aug 2017 19:34:04 -0400 Subject: [PATCH] Fix directly loading a torrent detail page --- src/index.js | 34 +++++++++++++++------------------- src/ui/connection.js | 9 +++++++++ src/ui/torrent_details.js | 13 ++++++++++--- 3 files changed, 34 insertions(+), 22 deletions(-) create mode 100644 src/ui/connection.js diff --git a/src/index.js b/src/index.js index 354f919..b0cee8d 100644 --- a/src/index.js +++ b/src/index.js @@ -12,27 +12,23 @@ import { filter_subscribe } from './actions/filter_subscribe'; import Nav from './ui/navigation'; import Main from './ui/main'; +import Connection from './ui/connection'; + +const root = document.getElementById('root'); +ReactDOM.render(, root); ws_init(() => { store.dispatch(filter_subscribe()); store.dispatch(filter_subscribe('server')); -}); - -const render = App => ReactDOM.render( - - -
-