From 6b100cf70bdb2482f606cd740607d8cce3f2494d Mon Sep 17 00:00:00 2001 From: Shaun Walker Date: Sat, 2 Apr 2022 09:29:12 -0400 Subject: [PATCH] fix installation CSS issue --- Oqtane.Client/Installer/Installer.razor | 2 +- Oqtane.Client/UI/Interop.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Oqtane.Client/Installer/Installer.razor b/Oqtane.Client/Installer/Installer.razor index 1cf5360a..fc404d7f 100644 --- a/Oqtane.Client/Installer/Installer.razor +++ b/Oqtane.Client/Installer/Installer.razor @@ -158,7 +158,7 @@ if (firstRender) { var interop = new Interop(JSRuntime); - await interop.IncludeLink("", "stylesheet", "https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css", "text/css", "sha512-GQGU0fMMi238uA+a/bdWJfpUGKUkBdgfFdgBm72SUQ6BeyWjoY/ton0tEjH+OSH9iP4Dfh+7HM0I9f5eR0L/4w==", "anonymous"); + await interop.IncludeLink("", "stylesheet", "https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css", "text/css", "sha512-GQGU0fMMi238uA+a/bdWJfpUGKUkBdgfFdgBm72SUQ6BeyWjoY/ton0tEjH+OSH9iP4Dfh+7HM0I9f5eR0L/4w==", "anonymous", ""); await interop.IncludeScript("", "https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/js/bootstrap.bundle.min.js", "sha512-pax4MlgXjHEPfCwcJLQhigY7+N8rt6bVvWLFyUMuxShv170X53TRzGPmPkZmGBhk+jikR8WBM4yl7A9WMHHqvg==", "anonymous", "", "head"); } } diff --git a/Oqtane.Client/UI/Interop.cs b/Oqtane.Client/UI/Interop.cs index f059cc51..14c73a85 100644 --- a/Oqtane.Client/UI/Interop.cs +++ b/Oqtane.Client/UI/Interop.cs @@ -72,13 +72,13 @@ namespace Oqtane.UI } } - public Task IncludeLink(string id, string rel, string href, string type, string integrity, string crossorigin) + public Task IncludeLink(string id, string rel, string href, string type, string integrity, string crossorigin, string includebefore) { try { _jsRuntime.InvokeVoidAsync( "Oqtane.Interop.includeLink", - id, rel, href, type, integrity, crossorigin); + id, rel, href, type, integrity, crossorigin, includebefore); return Task.CompletedTask; } catch