this fixes #77

pull/2/head
Raymond Hill 10 years ago
parent 5777dc0b15
commit f0063372c5

@ -34,7 +34,7 @@
/******************************************************************************/
µMatrix.saveUserSettings = function() {
chrome.storage.local.set(
this.XAL.keyvalSetMany(
this.userSettings,
this.getBytesInUse.bind(this)
);
@ -420,6 +420,8 @@
delete µm.userSettings.processReferer;
delete µm.userSettings.spoofUserAgent;
µm.saveUserSettings();
µm.XAL.keyvalRemoveOne('processReferer');
µm.XAL.keyvalRemoveOne('spoofUserAgent');
};
var onSettingsReady = function(settings) {

@ -80,6 +80,12 @@ exports.keyvalSetMany = function(dict, callback) {
/******************************************************************************/
exports.keyvalRemoveOne = function(key, callback) {
chrome.storage.local.remove(key, callback || noopFunc);
};
/******************************************************************************/
exports.keyvalRemoveAll = function(callback) {
chrome.storage.local.clear(callback || noopFunc);
};

Loading…
Cancel
Save