update icon on bfcache navigation

This commit is contained in:
tophf 2022-04-04 10:11:41 +03:00
parent 537372dffa
commit fd42f2d365

View File

@ -70,6 +70,11 @@
} }
msg.onTab(applyOnMessage); msg.onTab(applyOnMessage);
window.addEventListener('pageshow', e => {
if (e.isTrusted && e.persisted) { // bfcache
updateCount();
}
});
if (!chrome.tabs) { if (!chrome.tabs) {
window.dispatchEvent(new CustomEvent(orphanEventId)); window.dispatchEvent(new CustomEvent(orphanEventId));