From 94d1cec8a915a3ba91c724c3d5d13573e331145a Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Mon, 5 Jun 2023 12:27:15 +0200 Subject: [PATCH] Hide Sensitive Info: Fix script location The script snippet needs to be located outside of the theme if-conditions, otherwise it only works if no custom theme is applied. --- BTCPayServer/Views/Shared/LayoutHeadTheme.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Views/Shared/LayoutHeadTheme.cshtml b/BTCPayServer/Views/Shared/LayoutHeadTheme.cshtml index 579edcd54..28f69c546 100644 --- a/BTCPayServer/Views/Shared/LayoutHeadTheme.cshtml +++ b/BTCPayServer/Views/Shared/LayoutHeadTheme.cshtml @@ -5,6 +5,7 @@ @inject ThemeSettings Theme @inject IFileService FileService + @if (Theme.CustomTheme && !string.IsNullOrEmpty(Theme.CssUri)) { // legacy customization with CSS URI - keep it for backwards-compatibility @@ -25,7 +26,6 @@ else { - }