diff --git a/assets/index.html b/assets/index.html index 7e4f2f4d5..1d1e63fce 100644 --- a/assets/index.html +++ b/assets/index.html @@ -30,6 +30,7 @@ version: "[[.Version]]", configured: "[[.Configured]]", commit: "[[.Commit]]", + customCss: [[.CustomCss]], }; diff --git a/assets/js/app.js b/assets/js/app.js index 5b08260fc..93476be6a 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -75,3 +75,10 @@ window.app = app.mount("#app"); watchThemeChanges(); appDetection(); + +if (window.evcc.customCss) { + const link = document.createElement("link"); + link.href = `./custom.css`; + link.rel = "stylesheet"; + document.head.appendChild(link); +} diff --git a/assets/js/components/Footer/Footer.vue b/assets/js/components/Footer/Footer.vue index af84b8924..a7b9df52a 100644 --- a/assets/js/components/Footer/Footer.vue +++ b/assets/js/components/Footer/Footer.vue @@ -1,5 +1,5 @@