mirror of https://github.com/gorhill/uBlock.git
fix uBO misbehaving when corrupted SQL file is corrupted (1st step of the complete fix)
This commit is contained in:
parent
a5f7cbf969
commit
2973726da8
|
@ -418,7 +418,7 @@ vAPI.storage = (function() {
|
|||
console.error('SQLite error ', error.result, error.message);
|
||||
// Caller expects an answer regardless of failure.
|
||||
if ( typeof callback === 'function' ) {
|
||||
callback(null);
|
||||
callback({});
|
||||
}
|
||||
result = null;
|
||||
}
|
||||
|
@ -468,7 +468,7 @@ vAPI.storage = (function() {
|
|||
}
|
||||
|
||||
runStatement(stmt, function(result) {
|
||||
callback(result.size);
|
||||
callback(result.size || 0);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue