@using System.Net @inherits LayoutComponentBase
Git Matrix @if (showDownload) { Download }
@Body
@code { private bool showDownload { get; set; } protected override async Task OnInitializedAsync() { using var hc = new HttpClient(); var hr = await hc.SendAsync(new HttpRequestMessage(HttpMethod.Head, NavigationManager.ToAbsoluteUri("/MRU-BIN.tar.xz").AbsoluteUri)); showDownload = hr.StatusCode == HttpStatusCode.OK; // TODO: fix console logging toggle // if (!LocalStorageWrapper.Settings.DeveloperSettings.EnableConsoleLogging) { // Console.WriteLine("Console logging disabled!"); // var sw = new StringWriter(); // Console.SetOut(sw); // Console.SetError(sw); // } await base.OnInitializedAsync(); } }