1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-25 07:51:12 +02:00

fix comments

This commit is contained in:
Kushagra Gour
2018-01-19 11:31:37 +05:30
parent f0c1be6116
commit 8acf653a5c
2 changed files with 4 additions and 1 deletions

View File

@@ -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,

View File

@@ -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');