Kaynağa Gözat

fix #2446: auto-vacuum when purging removed scripts

tophf 1 ay önce
ebeveyn
işleme
8e3c8f5e57
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      src/background/utils/db.js

+ 1 - 0
src/background/utils/db.js

@@ -540,6 +540,7 @@ export async function removeScripts(ids) {
   if (removedScripts.length !== newLen) {
     removedScripts.length = newLen; // live scripts were moved to the beginning
     await storage.api.remove(idsToRemove);
+    vacuum();
     return sendCmd('RemoveScripts', ids);
   }
 }