diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-17 15:22:42 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-17 15:22:42 +0200 |
commit | 8245dd19f4f2f4cdd74a6fdf9b5e051c2cd2fac6 (patch) | |
tree | 7ead6c2c6a6ed2fadba59aefa1d5743fbc4dfe9b /web/src/js/dispatcher.js | |
parent | b4ecd96beb77a8bae02d82eac174dded198797a3 (diff) | |
download | mitmproxy-8245dd19f4f2f4cdd74a6fdf9b5e051c2cd2fac6.tar.gz mitmproxy-8245dd19f4f2f4cdd74a6fdf9b5e051c2cd2fac6.tar.bz2 mitmproxy-8245dd19f4f2f4cdd74a6fdf9b5e051c2cd2fac6.zip |
connect eventlog events to ui
Diffstat (limited to 'web/src/js/dispatcher.js')
-rw-r--r-- | web/src/js/dispatcher.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/src/js/dispatcher.js b/web/src/js/dispatcher.js index 028ac4dc..65c4a4a0 100644 --- a/web/src/js/dispatcher.js +++ b/web/src/js/dispatcher.js @@ -1,6 +1,6 @@ const PayloadSources = { - VIEW_ACTION: "VIEW_ACTION", - SERVER_ACTION: "SERVER_ACTION" + VIEW: "view", + SERVER: "server" }; @@ -26,10 +26,10 @@ Dispatcher.prototype.dispatch = function (payload) { AppDispatcher = new Dispatcher(); AppDispatcher.dispatchViewAction = function (action) { - action.actionSource = PayloadSources.VIEW_ACTION; + action.source = PayloadSources.VIEW; this.dispatch(action); }; AppDispatcher.dispatchServerAction = function (action) { - action.actionSource = PayloadSources.SERVER_ACTION; + action.source = PayloadSources.SERVER; this.dispatch(action); }; |