update icon on bfcache navigation
This commit is contained in:
parent
537372dffa
commit
fd42f2d365
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user