@using MatrixRoomUtils.Core.Extensions @using System.Net @inherits LayoutComponentBase
Git Matrix @if (showDownload) { Download }
@Body
@code { private bool showDownload { get; set; } = false; protected override async Task OnInitializedAsync() { using var hc = new HttpClient(); var hr = await hc.SendAsync(new(HttpMethod.Head, NavigationManager.ToAbsoluteUri("/MRU-BIN.tar.xz").AbsoluteUri)); showDownload = hr.StatusCode == HttpStatusCode.OK; await base.OnInitializedAsync(); } }