Fix remaining old whitelist options

This commit is contained in:
hensm
2022-05-30 20:11:23 +01:00
parent 539d2c60d9
commit c2f00a2412
2 changed files with 3 additions and 3 deletions

View File

@@ -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 {};