clear namespace when removing profile
This commit is contained in:
parent
b51acf277f
commit
f5edb12d42
5 changed files with 35 additions and 10 deletions
|
|
@ -80,11 +80,7 @@ LocalStorage.prototype.removeItem = function(k, cb) {
|
|||
};
|
||||
|
||||
LocalStorage.prototype.clear = function(cb) {
|
||||
if (isChromeApp) {
|
||||
chrome.storage.clear();
|
||||
} else {
|
||||
this.ls.clear();
|
||||
}
|
||||
// NOP
|
||||
return cb();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue