mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-09 00:59:59 +00:00
Fix remaining old whitelist options
This commit is contained in:
@@ -153,8 +153,8 @@ async function onBeforeCastSDKRequest(details: OnBeforeRequestDetails) {
|
||||
return {};
|
||||
}
|
||||
|
||||
// Check against whitelist if restricted mode is enabled
|
||||
if (await options.get("userAgentWhitelistRestrictedEnabled")) {
|
||||
// Check against whitelist if enabled
|
||||
if (await options.get("siteWhitelistEnabled")) {
|
||||
if (!details?.frameAncestors?.length) {
|
||||
if (!originUrlCache.includes(details.originUrl)) {
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user