Only call favicon function for newUI
This commit is contained in:
parent
b6c89b90a0
commit
59ebd30ec2
|
@ -288,13 +288,14 @@ function recreateStyleTargets({styles, iconsOnly = false} = {}) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (newUI.favicons) {
|
||||||
debounce(getFaviconImgSrc);
|
debounce(getFaviconImgSrc);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getFaviconImgSrc() {
|
function getFaviconImgSrc() {
|
||||||
if (newUI.favicons) {
|
|
||||||
const targets = $$('.target', installed);
|
const targets = $$('.target', installed);
|
||||||
const regexpRemoveNegativeLookAhead = /(\?!([^)]+\)))/g;
|
const regexpRemoveNegativeLookAhead = /(\?!([^)]+\)))/g;
|
||||||
const regexpMatchRegExp = /\w+[\\.(]+(com|org|co|net|im|io)\b/g;
|
const regexpMatchRegExp = /\w+[\\.(]+(com|org|co|net|im|io)\b/g;
|
||||||
|
@ -327,7 +328,6 @@ function getFaviconImgSrc() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
handleEvent.loadFavicons();
|
handleEvent.loadFavicons();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user