aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/dispatcher.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-09-17 15:22:42 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-09-17 15:22:42 +0200
commit8245dd19f4f2f4cdd74a6fdf9b5e051c2cd2fac6 (patch)
tree7ead6c2c6a6ed2fadba59aefa1d5743fbc4dfe9b /web/src/js/dispatcher.js
parentb4ecd96beb77a8bae02d82eac174dded198797a3 (diff)
downloadmitmproxy-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.js8
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);
};