aboutsummaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/setting.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/actions/setting.js b/src/actions/setting.js
index d8e889e..7898f06 100644
--- a/src/actions/setting.js
+++ b/src/actions/setting.js
@@ -1,9 +1,13 @@
import actions from '../actions';
import messages from '../content/messages';
+import DefaultSettings from '../shared/default-settings';
const load = () => {
return browser.storage.local.get('settings').then((value) => {
- return set(value.settings);
+ if (value.settings) {
+ return set(value.settings);
+ }
+ return set(DefaultSettings);
}, console.error);
};