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:
@@ -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,
|
||||
|
@@ -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');
|
||||
|
Reference in New Issue
Block a user