mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39: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 {};
|
||||
|
||||
@@ -363,7 +363,7 @@ class OptionsApp extends Component<OptionsAppProps, OptionsAppState> {
|
||||
{_("optionsSiteWhitelistContent")}
|
||||
</div>
|
||||
<div className="option__control">
|
||||
{this.state.options?.userAgentWhitelist && (
|
||||
{this.state.options?.siteWhitelist && (
|
||||
<Whitelist
|
||||
items={this.state.options.siteWhitelist}
|
||||
onChange={this.handleWhitelistChange}
|
||||
|
||||
Reference in New Issue
Block a user