aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/app.js')
-rw-r--r--web/src/js/app.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/web/src/js/app.js b/web/src/js/app.js
index 736072dc..5146cb46 100644
--- a/web/src/js/app.js
+++ b/web/src/js/app.js
@@ -1,4 +1,7 @@
$(function () {
- Connection.init();
- app = React.renderComponent(ProxyApp, document.body);
+ window.ws = new Connection("/updates");
+
+ ReactRouter.run(routes, function (Handler) {
+ React.render(<Handler/>, document.body);
+ });
}); \ No newline at end of file