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); 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();
}
} }