not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
575 B

// HACK: Force settings to empty the first time - need for Sugar web convergence
if (typeof chrome != 'undefined' && chrome.app && chrome.app.runtime) {
chrome.storage.local.get('sugar_settings', function(value) {
if (!value.sugar_settings) {
chrome.storage.local.set({sugar_settings:JSON.stringify({})});
}
});
} else if (typeof(Storage)!=="undefined" && typeof(window.localStorage)!=="undefined") {
try {
if (window.localStorage.getItem('sugar_settings') === null) {
window.localStorage.setItem('sugar_settings', JSON.stringify({}));
}
} catch (err) {}
}