Skip to content

Commit

Permalink
1.9.31
Browse files Browse the repository at this point in the history
  • Loading branch information
hoothin committed Sep 24, 2024
1 parent eafdebf commit 3e30e70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions searchJumper.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -13231,12 +13231,16 @@
}
}

async function cachePoolAction() {
while (cachePool.length > 0) {
await cacheAction(cachePool.shift());
}
}

async function cacheImgManager(noti) {
if (searchData.prefConfig.cacheSwitch) {
let needCache = cachePool.length > 0;
while (cachePool.length > 0) {
await cacheAction(cachePool.shift());
}
await Promise.all([cachePoolAction(), cachePoolAction(), cachePoolAction(), cachePoolAction(), cachePoolAction()]);
if (needCache) {
if (noti) _GM_notification(i18n("cacheOver"));
debug(i18n("cacheOver"));
Expand Down
2 changes: 1 addition & 1 deletion src/Version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "1.9.30";
export const version = "1.9.31";

0 comments on commit 3e30e70

Please sign in to comment.