in public/background.js [106:120]
function updateFaviconUrl(tabId, changeInfo, tab) {
if (changeInfo.status === 'complete' && tab.url) {
const domain = getBaseDomain(tab.url);
if (domain && tab.favIconUrl) {
faviconUrls[domain] = tab.favIconUrl;
// Also store in chrome.storage.local
chrome.storage.local.get(['faviconUrls'], (result) => {
let storedFavicons = result.faviconUrls || {};
storedFavicons[domain] = tab.favIconUrl;
chrome.storage.local.set({ faviconUrls: storedFavicons });
});
}
}
}