From 8a6fb45c5e95708dad8e3f821aeee7aba0f187ae Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 23 Oct 2020 17:00:11 +0300 Subject: [PATCH] simplify --- js/msg.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); }; }, });