Merge pull request #5353 from mdmontesinos/fix-cookieconsent

fix #5352: remove requests to cookie consent service when not enabled
This commit is contained in:
Shaun Walker
2025-06-09 15:57:59 -04:00
committed by GitHub

View File

@ -103,6 +103,9 @@
{
var cookieConsentSetting = SettingService.GetSetting(PageState.Site.Settings, "CookieConsent", string.Empty);
_enabled = !string.IsNullOrEmpty(cookieConsentSetting);
if (!_enabled) return;
_optout = cookieConsentSetting == "optout";
_actioned = await CookieConsentService.IsActionedAsync();
@ -164,4 +167,4 @@
StateHasChanged();
}
}
}
}