diff --git a/js/msg.js b/js/msg.js index 7c4741c2..a73bf696 100644 --- a/js/msg.js +++ b/js/msg.js @@ -40,8 +40,7 @@ window.INJECTED !== 1 && (() => { tab: NEEDS_TAB_IN_SENDER.includes(name) && await getOwnTab(), url: location.href, }); - // avoiding an unnecessary `await` microtask сycle - return deepCopy(res instanceof bg.Promise ? await res : res); + return deepCopy(await res); }; }, });