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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function getFaviconImgSrc() {
|
||||
if (newUI.favicons) {
|
||||
const targets = $$('.target', installed);
|
||||
const regexpRemoveNegativeLookAhead = /(\?!([^)]+\)))/g;
|
||||
const regexpMatchRegExp = /\w+[\\.(]+(com|org|co|net|im|io)\b/g;
|
||||
|
@ -328,7 +329,6 @@ function getFaviconImgSrc() {
|
|||
}
|
||||
handleEvent.loadFavicons();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Object.assign(handleEvent, {
|
||||
|
|
Loading…
Reference in New Issue
Block a user