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

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

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

export { load, setProperty };