aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-11 18:39:01 -0800
committerAlex Yatskov <alex@foosoft.net>2017-03-11 18:39:01 -0800
commite8a993bf35c6d87106ebe3d6c2487c0ef2d9636b (patch)
tree20150317193b844b4a976aa7c6d59185ef2ea5d1 /ext/bg/js/util.js
parent73fcc5a9571fe6adc258e82bcabd6f2878ddf890 (diff)
remove references to chrome.storage.sync
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r--ext/bg/js/util.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index f9b221b3..d9bd76c5 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -210,15 +210,7 @@ function optionsLoad() {
return new Promise((resolve, reject) => {
chrome.storage.local.get(null, store => resolve(store.options));
}).then(optionsStr => {
- if (optionsStr) {
- return JSON.parse(optionsStr);
- } else if (chrome.storage.sync) {
- return new Promise((resolve, reject) => {
- chrome.storage.sync.get(null, options => resolve(options));
- });
- } else {
- return {};
- }
+ return optionsStr ? JSON.parse(optionsStr) : {};
}).catch(error => {
return {};
}).then(options => {