From aba00ae69827350e5da7512b273e3dfe54138099 Mon Sep 17 00:00:00 2001 From: Jamie Rees Date: Mon, 3 Aug 2020 21:23:32 +0100 Subject: [PATCH] Custom CSS is now working --- src/Ombi/ClientApp/src/app/app.component.ts | 6 ++++++ src/Ombi/ClientApp/src/app/login/login.component.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Ombi/ClientApp/src/app/app.component.ts b/src/Ombi/ClientApp/src/app/app.component.ts index 14899f56c..abf47b1bf 100644 --- a/src/Ombi/ClientApp/src/app/app.component.ts +++ b/src/Ombi/ClientApp/src/app/app.component.ts @@ -83,6 +83,12 @@ export class AppComponent implements OnInit { this.applicationName = this.customizationSettings.applicationName; this.document.getElementsByTagName('title')[0].innerText = this.applicationName; } + if (this.customizationSettings && this.customizationSettings.customCss) { + var dom = this.document.getElementsByTagName('head')[0]; + var css = document.createElement("style"); + css.innerHTML = this.customizationSettings.customCss; + dom.appendChild(css); + } if (this.customizationSettings.useCustomPage) { this.customPageService.getCustomPage().subscribe(c => { diff --git a/src/Ombi/ClientApp/src/app/login/login.component.html b/src/Ombi/ClientApp/src/app/login/login.component.html index 8b0972115..f2627b3f8 100644 --- a/src/Ombi/ClientApp/src/app/login/login.component.html +++ b/src/Ombi/ClientApp/src/app/login/login.component.html @@ -24,7 +24,7 @@ {{'Login.RememberMe' | translate}} - +