Skip to content

Commit

Permalink
Update searchJumper.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hoothin committed Sep 15, 2024
1 parent 2d4935b commit ca0fe7a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions searchJumper.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -8886,7 +8886,7 @@
}
};
if (isFontIcon) {
let cache = searchData.prefConfig.cacheSwitch && cacheIcon[icon.trim().replace(/ /g, '_')];
let cache = cacheIcon[icon.trim().replace(/ /g, '_')];
if (cache === 'fail' || !cache) {
iEle.className = icon.indexOf("fa") === 0 ? icon : "fa fa-" + icon;
this.fontPool.push(iEle);
Expand Down Expand Up @@ -13207,7 +13207,6 @@
resolve(true);
}, 1);
});
if (!searchData.prefConfig.cacheSwitch) return;
if (target.nodeName.toUpperCase() == 'IMG') {
let src = target.src || target.dataset.src;
if (src) {
Expand Down Expand Up @@ -13237,7 +13236,7 @@
}

async function cacheFontManager(noti) {
if (searchData.prefConfig.cacheSwitch && !isAllPage) {
if (!isAllPage) {
searchBar.con.classList.add("in-input");
searchBar.con.style.visibility = "hidden";
searchBar.con.style.display = "";
Expand Down

0 comments on commit ca0fe7a

Please sign in to comment.