Minor fixes
This commit is contained in:
parent
c031a92b79
commit
e835a0b302
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ const injectScript = async (tabID: number, enabled?: boolean) => {
|
||||||
|
|
||||||
com.setEnabledCallback = async (v: boolean, s: Runtime.MessageSender) => {
|
com.setEnabledCallback = async (v: boolean, s: Runtime.MessageSender) => {
|
||||||
const tab = await getTabID(s);
|
const tab = await getTabID(s);
|
||||||
|
if ((await isEnabledSession(tab)) == v) return;
|
||||||
|
|
||||||
injectScript(tab);
|
injectScript(tab);
|
||||||
await setEnabledSession(tab, v);
|
await setEnabledSession(tab, v);
|
||||||
|
|
Loading…
Reference in a new issue