simplify
This commit is contained in:
parent
7849149fd0
commit
8a6fb45c5e
|
@ -40,8 +40,7 @@ window.INJECTED !== 1 && (() => {
|
||||||
tab: NEEDS_TAB_IN_SENDER.includes(name) && await getOwnTab(),
|
tab: NEEDS_TAB_IN_SENDER.includes(name) && await getOwnTab(),
|
||||||
url: location.href,
|
url: location.href,
|
||||||
});
|
});
|
||||||
// avoiding an unnecessary `await` microtask сycle
|
return deepCopy(await res);
|
||||||
return deepCopy(res instanceof bg.Promise ? await res : res);
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user