Minor fixes

This commit is contained in:
a 2020-08-13 12:24:53 +02:00
parent c031a92b79
commit e835a0b302

View file

@ -43,6 +43,7 @@ const injectScript = async (tabID: number, enabled?: boolean) => {
com.setEnabledCallback = async (v: boolean, s: Runtime.MessageSender) => {
const tab = await getTabID(s);
if ((await isEnabledSession(tab)) == v) return;
injectScript(tab);
await setEnabledSession(tab, v);