Fix codestyle in options.js

This commit is contained in:
isqua 2015-01-28 20:09:56 +03:00
parent 98982c6145
commit bd2aa28afc

View file

@ -40,6 +40,7 @@ OptionsPage.prototype.updateOptionsFromFrom = function() {
}, function() {
console.log('Default options initialized. Version upgraded to %s.', this.version);
/* global confirm */
if (! confirm(chrome.i18n.getMessage('options_text_new_version'))) {
window.close();
}
@ -127,7 +128,7 @@ OptionsPage.prototype.updateOptionFromInput = function(input) {
this._options[key] = {
type: 'plain',
value: input.value
}
};
}
};
@ -188,12 +189,15 @@ OptionsPage.prototype.checkOldStyle = function() {
console.log('Found old-style options. Cleaning...');
chrome.storage.sync.get(null, function(data) {
var option;
console.log('Old data: %O', data);
for (option in data) {
if (data.hasOwnProperty(option)) {
chrome.storage.sync.remove(option);
}
}
console.log('All old data removed');
});