Index: lib/firefoxDataCleanup.js |
=================================================================== |
--- a/lib/firefoxDataCleanup.js |
+++ b/lib/firefoxDataCleanup.js |
@@ -72,13 +72,13 @@ |
// Reset hit statistics on any filters having them |
FilterStorage.resetHitCounts(haveHitCounts); |
// Remove any existing automatic backups |
let backups = []; |
for (let i = 1; i < 100; i++) |
backups.push(`file:patterns-backup${i}.ini`); |
- browser.storage.local.remove(backups).then(() => |
+ browser.storage.local.remove(backups, () => |
{ |
Prefs.data_cleanup_done = true; |
}); |
}); |