fix(browser-extension): popup enables icon

This commit is contained in:
wanhose 2022-05-17 17:02:47 +02:00
parent 584a2625a1
commit f26a17b4f8

View File

@ -44,9 +44,6 @@ const handlePowerChange = () => {
state: { enabled: !enabled },
type: 'UPDATE_CACHE',
});
dispatch({
type: !enabled === true ? 'ENABLE_ICON' : 'DISABLE_ICON',
});
if (!enabled === false) power.removeAttribute('checked');
if (!enabled === true) power.setAttribute('checked', 'checked');
chrome.tabs.reload(id, { bypassCache: true });