mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Fix error with non-tab related requests
This commit is contained in:
@@ -138,7 +138,7 @@ function onWhitelistedChildBeforeSendHeaders(
|
||||
* the API shim.
|
||||
*/
|
||||
async function onBeforeCastSDKRequest(details: OnBeforeRequestDetails) {
|
||||
if (!details.originUrl) {
|
||||
if (!details.originUrl || details.tabId === -1) {
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user