aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/store/store.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-06-03 18:35:27 -0700
committerMaximilian Hils <git@maximilianhils.com>2016-06-03 18:38:25 -0700
commitff9cc8b28393f6beba1ed42ade074672183313e9 (patch)
treef2fbb0d6193897be15e98a9bdbbbbe1a8af41dea /web/src/js/store/store.js
parentd6fcd7e06d24ce75a17b82290ce54a802bc5e868 (diff)
downloadmitmproxy-ff9cc8b28393f6beba1ed42ade074672183313e9.tar.gz
mitmproxy-ff9cc8b28393f6beba1ed42ade074672183313e9.tar.bz2
mitmproxy-ff9cc8b28393f6beba1ed42ade074672183313e9.zip
web: remove old event log store
Diffstat (limited to 'web/src/js/store/store.js')
-rw-r--r--web/src/js/store/store.js22
1 files changed, 2 insertions, 20 deletions
diff --git a/web/src/js/store/store.js b/web/src/js/store/store.js
index a16a0369..65355684 100644
--- a/web/src/js/store/store.js
+++ b/web/src/js/store/store.js
@@ -2,7 +2,6 @@
import _ from "lodash";
import $ from "jquery";
import {EventEmitter} from 'events';
-import { EventLogActions } from "../actions.js"
import {ActionTypes, StoreCmds} from "../actions.js";
import {AppDispatcher} from "../dispatcher.js";
@@ -118,7 +117,7 @@ _.extend(LiveStoreMixin.prototype, {
this.handle_fetch(message.data);
}.bind(this))
.fail(function () {
- EventLogActions.add_event("Could not fetch " + this.type);
+ console.error("Could not fetch " + this.type)
}.bind(this));
}
},
@@ -153,21 +152,4 @@ export function FlowStore() {
export function SettingsStore() {
return new LiveDictStore(ActionTypes.SETTINGS_STORE);
-}
-
-export function EventLogStore() {
- LiveListStore.call(this, ActionTypes.EVENT_STORE);
-}
-_.extend(EventLogStore.prototype, LiveListStore.prototype, {
- fetch: function(){
- LiveListStore.prototype.fetch.apply(this, arguments);
-
- // Make sure to display updates even if fetching all events failed.
- // This way, we can send "fetch failed" log messages to the log.
- if(this._fetchxhr){
- this._fetchxhr.fail(function(){
- this.handle_fetch(null);
- }.bind(this));
- }
- }
-});
+} \ No newline at end of file