aboutsummaryrefslogtreecommitdiff
path: root/src/background/actions/setting.js
blob: 773142fec0bea9a95cb9686fc6fda6ac5e0f6c01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import actions from '../actions';
import * as settingsStorage from 'shared/settings/storage';

const load = () => {
  return settingsStorage.loadValue().then((value) => {
    return {
      type: actions.SETTING_SET_SETTINGS,
      value,
    };
  });
};

const setProperty = (name, value) => {
  return {
    type: actions.SETTING_SET_PROPERTY,
    name,
    value,
  };
};

export { load, setProperty };