From fd42f2d365bcf0c14ad3aa5bd7b5d4a3380539fb Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 4 Apr 2022 10:11:41 +0300 Subject: [PATCH] update icon on bfcache navigation --- content/apply.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/apply.js b/content/apply.js index ce2e86a7..0f7f7654 100644 --- a/content/apply.js +++ b/content/apply.js @@ -70,6 +70,11 @@ } msg.onTab(applyOnMessage); + window.addEventListener('pageshow', e => { + if (e.isTrusted && e.persisted) { // bfcache + updateCount(); + } + }); if (!chrome.tabs) { window.dispatchEvent(new CustomEvent(orphanEventId));