Fix: update all icons when some prefs changed
This commit is contained in:
parent
5c0288e9ba
commit
0d0e1b4dc0
|
@ -144,6 +144,18 @@ prefs.subscribe(['iconset'], () =>
|
|||
styles: {},
|
||||
}));
|
||||
|
||||
prefs.subscribe([
|
||||
'show-badge',
|
||||
'disableAll',
|
||||
'badgeDisabled',
|
||||
'badgeNormal',
|
||||
'iconset',
|
||||
], () =>
|
||||
queryTabs().then(tabs =>
|
||||
tabs.map(t => updateIcon({tab: t}))
|
||||
)
|
||||
)
|
||||
|
||||
// *************************************************************************
|
||||
chrome.runtime.onInstalled.addListener(({reason}) => {
|
||||
if (reason !== 'update') return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user