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