private void CloseAndAcceptCookies() { if (!visible) { return; } visible = false; CookieService.AcceptDisclaimer(); JSRuntime.InvokeVoidAsync( "cookies.acceptMessage", cookieString); InvokeAsync(StateHasChanged); }