From 85476d9915f23fc45e64b5242e804623f50cd20a Mon Sep 17 00:00:00 2001
From: Maximilian Hils <git@maximilianhils.com>
Date: Mon, 31 Oct 2016 05:30:32 -0700
Subject: clean up mitmweb

---
 web/src/js/app.jsx | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'web/src/js/app.jsx')

diff --git a/web/src/js/app.jsx b/web/src/js/app.jsx
index f04baea0..a94d2ef6 100644
--- a/web/src/js/app.jsx
+++ b/web/src/js/app.jsx
@@ -7,6 +7,9 @@ import thunk from 'redux-thunk'
 import ProxyApp from './components/ProxyApp'
 import rootReducer from './ducks/index'
 import { add as addLog } from './ducks/eventLog'
+import useUrlState from './urlState'
+import WebSocketBackend from './backends/websocket'
+
 
 const middlewares = [thunk];
 
@@ -21,12 +24,13 @@ const store = createStore(
     applyMiddleware(...middlewares)
 )
 
-// @todo move to ProxyApp
+useUrlState(store)
+window.backend = new WebSocketBackend(store)
+
 window.addEventListener('error', msg => {
     store.dispatch(addLog(msg))
 })
 
-// @todo remove this
 document.addEventListener('DOMContentLoaded', () => {
     render(
         <Provider store={store}>
-- 
cgit v1.2.3

