From b9a08ec061f271df57d0a14667fe6af3d523db6b Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 24 Jan 2024 12:18:32 +0100 Subject: Removal of download links due to maintenance burden --- MatrixRoomUtils.Web/Shared/MainLayout.razor | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) (limited to 'MatrixRoomUtils.Web/Shared') diff --git a/MatrixRoomUtils.Web/Shared/MainLayout.razor b/MatrixRoomUtils.Web/Shared/MainLayout.razor index 74db805..2322af1 100644 --- a/MatrixRoomUtils.Web/Shared/MainLayout.razor +++ b/MatrixRoomUtils.Web/Shared/MainLayout.razor @@ -9,36 +9,12 @@
- Git + 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(); - } - -} \ No newline at end of file + \ No newline at end of file -- cgit 1.5.1