mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Fix incorrect return type for BlockingResponse
This commit is contained in:
@@ -513,14 +513,14 @@ async function initWhitelist () {
|
||||
*/
|
||||
async function onBeforeCastSDKRequest (details: OnBeforeRequestDetails) {
|
||||
if (!details.originUrl) {
|
||||
return;
|
||||
return {};
|
||||
}
|
||||
|
||||
// Check against whitelist if restricted mode is enabled
|
||||
if (await options.get("userAgentWhitelistRestrictedEnabled")) {
|
||||
if (!details?.frameAncestors?.length) {
|
||||
if (!originUrlCache.includes(details.originUrl)) {
|
||||
return;
|
||||
return {};
|
||||
}
|
||||
} else {
|
||||
let hasMatchingAncestor = false;
|
||||
@@ -531,7 +531,7 @@ async function initWhitelist () {
|
||||
}
|
||||
|
||||
if (!hasMatchingAncestor) {
|
||||
return;
|
||||
return {};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user