Fix error with non-tab related requests

This commit is contained in:
hensm
2021-04-29 00:31:37 +01:00
parent 09bd92d03e
commit fce3fa31be

View File

@@ -138,7 +138,7 @@ function onWhitelistedChildBeforeSendHeaders(
* the API shim.
*/
async function onBeforeCastSDKRequest(details: OnBeforeRequestDetails) {
if (!details.originUrl) {
if (!details.originUrl || details.tabId === -1) {
return {};
}