aboutsummaryrefslogtreecommitdiff
path: root/src/background/actions
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-07-22 00:01:24 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-07-22 00:01:24 +0900
commit89c28d67fd7b961833b557da904bd17aa28660c5 (patch)
tree2af29fb34f81e9dba508a4bccad98fad73dea143 /src/background/actions
parent0652131de885df3ebb7c9c0e762fd1604486a892 (diff)
Settings as clean architecture
Diffstat (limited to 'src/background/actions')
-rw-r--r--src/background/actions/setting.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/background/actions/setting.js b/src/background/actions/setting.js
deleted file mode 100644
index 7eeb5de..0000000
--- a/src/background/actions/setting.js
+++ /dev/null
@@ -1,20 +0,0 @@
-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 };