Only call favicon function for newUI

This commit is contained in:
Rob Garrison 2017-12-31 00:59:10 -06:00
parent b6c89b90a0
commit 59ebd30ec2

View File

@ -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, {