This commit is contained in:
tophf 2020-10-23 17:00:11 +03:00
parent 7849149fd0
commit 8a6fb45c5e

View File

@ -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);
};
},
});