diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-11-26 04:18:21 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-11-26 04:18:21 +0100 |
commit | ed8249023fb7c0d429b9278c63b51ac071700987 (patch) | |
tree | 8bd83354e7484f15029ec678744234bd32e9906d /web/src/js/app.js | |
parent | 47a78e3c729f4ddb7971b72bfae30140562f4dd6 (diff) | |
download | mitmproxy-ed8249023fb7c0d429b9278c63b51ac071700987.tar.gz mitmproxy-ed8249023fb7c0d429b9278c63b51ac071700987.tar.bz2 mitmproxy-ed8249023fb7c0d429b9278c63b51ac071700987.zip |
introduce revised views, port over changes from multiple_views branch
Diffstat (limited to 'web/src/js/app.js')
-rw-r--r-- | web/src/js/app.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/web/src/js/app.js b/web/src/js/app.js index 736072dc..4ee35d60 100644 --- a/web/src/js/app.js +++ b/web/src/js/app.js @@ -1,4 +1,8 @@ $(function () { - Connection.init(); - app = React.renderComponent(ProxyApp, document.body); + window.app = React.renderComponent(ProxyApp, document.body); + var UpdateConnection = new Connection("/updates"); + UpdateConnection.onmessage = function (message) { + var m = JSON.parse(message.data); + AppDispatcher.dispatchServerAction(m); + }; });
\ No newline at end of file |