diff --git a/src/db.js b/src/db.js index 3e91a0f..3f431d2 100644 --- a/src/db.js +++ b/src/db.js @@ -118,6 +118,9 @@ }); } + // Fetch user settings. + // This isn't hitting the remote db because remote settings + // get fetch asynchronously (in user/ call) and update the envioronment. function getSettings(defaultSettings) { const d = deferred(); // Will be chrome.storage.sync in extension environment, diff --git a/src/script.js b/src/script.js index 1b38aa4..71f1575 100644 --- a/src/script.js +++ b/src/script.js @@ -1710,7 +1710,7 @@ loginModal, profileModal, profileAvatarImg, profileUserName prefs[settingName] = el.type === 'checkbox' ? el.checked : el.value; obj[settingName] = prefs[settingName]; - // In case of !extension, we save in localstorage so that it gets fetched + // We always save locally so that it gets fetched // faster on future loads. db.sync.set(obj, function() { alertsService.add('Setting saved');