mirror of https://github.com/gorhill/uBlock.git
code review: try to remove not found keys from storage.local
This commit is contained in:
parent
a0c595d02d
commit
000d15d8ab
|
@ -142,7 +142,9 @@ vAPI.cacheStorage = (function() {
|
|||
if ( !db ) { return callback(); }
|
||||
var transaction = db.transaction(STORAGE_NAME);
|
||||
transaction.oncomplete = transaction.onerror = function() {
|
||||
// TODO: remove once storage.local is clean
|
||||
if ( notfoundKeys.size === 0 ) {
|
||||
vAPI.storage.remove(keys);
|
||||
return callback(store);
|
||||
}
|
||||
maybeMigrate(Array.from(notfoundKeys), store, callback);
|
||||
|
|
Loading…
Reference in New Issue