mitmproxy/web/src/js/actions.es6.js

14 lines
319 B
JavaScript
Raw Normal View History

2014-09-15 16:08:26 +00:00
var ActionTypes = {
SETTINGS_UPDATE: "SETTINGS_UPDATE",
LOG_ADD: "LOG_ADD"
};
var SettingsActions = {
update(settings) {
settings = _.merge({}, SettingsStore.getSettings(), settings);
AppDispatcher.dispatchViewAction({
actionType: ActionTypes.SETTINGS_UPDATE,
settings: settings
});
}
};