fixup! reset styleIds on main page navigation
This commit is contained in:
parent
0004b5bc73
commit
8903446e44
|
@ -1,4 +1,4 @@
|
||||||
/* global prefs debounce iconUtil FIREFOX CHROME VIVALDI tabManager API_METHODS */
|
/* global prefs debounce iconUtil FIREFOX CHROME VIVALDI tabManager navigatorUtil API_METHODS */
|
||||||
/* exported iconManager */
|
/* exported iconManager */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -37,6 +37,10 @@ const iconManager = (() => {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
navigatorUtil.onCommitted(({tabId, frameId}) => {
|
||||||
|
if (!frameId) tabManager.set(tabId, 'styleIds', undefined);
|
||||||
|
});
|
||||||
|
|
||||||
function refreshIconBadgeText(tabId) {
|
function refreshIconBadgeText(tabId) {
|
||||||
const text = prefs.get('show-badge') ? `${getStyleCount(tabId)}` : '';
|
const text = prefs.get('show-badge') ? `${getStyleCount(tabId)}` : '';
|
||||||
iconUtil.setBadgeText({tabId, text});
|
iconUtil.setBadgeText({tabId, text});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user