diff options
Diffstat (limited to 'MatrixRoomUtils.Web/Shared/MainLayout.razor')
-rw-r--r-- | MatrixRoomUtils.Web/Shared/MainLayout.razor | 28 |
1 files changed, 2 insertions, 26 deletions
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 @@ <main> <div class="top-row px-4"> <PortableDevTools></PortableDevTools> - <a href="https://cgit.rory.gay/MatrixRoomUtils.git/" target="_blank">Git</a> + <a href="https://cgit.rory.gay/matrix/MatrixRoomUtils.git/" target="_blank">Git</a> <a href="https://matrix.to/#/%23mru%3Arory.gay?via=rory.gay&via=matrix.org&via=feline.support" target="_blank">Matrix</a> - @if (showDownload) { - <a href="/MRU.tar.xz" target="_blank">Download</a> - } </div> <article class="Content px-4"> @Body </article> </main> -</div> - -@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 +</div> \ No newline at end of file |