update favicons in handleUpdate
This commit is contained in:
parent
b754635b81
commit
0c2c86a8de
|
@ -309,8 +309,8 @@ function recreateStyleTargets({styles, iconsOnly = false} = {}) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function getFaviconImgSrc() {
|
function getFaviconImgSrc(container = installed) {
|
||||||
const targets = $$('.target', installed);
|
const targets = $$('.target', container);
|
||||||
const regexpRemoveNegativeLookAhead = /(\?!([^)]+\))|\(\?![\w(]+[^)]+[\w|)]+)/g;
|
const regexpRemoveNegativeLookAhead = /(\?!([^)]+\))|\(\?![\w(]+[^)]+[\w|)]+)/g;
|
||||||
// replace extra characters & all but the first group entry "(abc|def|ghi)xyz" => abcxyz
|
// replace extra characters & all but the first group entry "(abc|def|ghi)xyz" => abcxyz
|
||||||
const regexpReplaceExtraCharacters = /[\\(]|((\|\w+)+\))/g;
|
const regexpReplaceExtraCharacters = /[\\(]|((\|\w+)+\))/g;
|
||||||
|
@ -537,6 +537,9 @@ function handleUpdate(style, {reason, method} = {}) {
|
||||||
animateElement(entry);
|
animateElement(entry);
|
||||||
requestAnimationFrame(() => scrollElementIntoView(entry));
|
requestAnimationFrame(() => scrollElementIntoView(entry));
|
||||||
}
|
}
|
||||||
|
if (newUI.enabled && newUI.favicons) {
|
||||||
|
getFaviconImgSrc(entry);
|
||||||
|
}
|
||||||
|
|
||||||
function handleToggledOrCodeOnly() {
|
function handleToggledOrCodeOnly() {
|
||||||
const newStyleMeta = getStyleWithNoCode(style);
|
const newStyleMeta = getStyleWithNoCode(style);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user