You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.
Change cookie banner to follow the new asp.net core 2.x standard:
`@using Microsoft.AspNetCore.Http.Features
@{
var consentFeature = Context.Features.Get();
var showBanner = !consentFeature?.CanTrack ?? false;
var cookieString = consentFeature?.CreateConsentCookie();
}
@if (showBanner)
{
Toggle cookie consent banner
Use this space to summarize your privacy and cookie use policy.
Learn More
Accept
<script>
(function () {
document.querySelector("#cookieConsent button[data-cookie-string]").addEventListener("click", function (el) {
document.cookie = el.target.dataset.cookieString;
document.querySelector("#cookieConsent").classList.add("hidden");
}, false);
})();
</script>
}`
The text was updated successfully, but these errors were encountered: