From 75ad88eb243a285575acee7d6d948367e9070773 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Mon, 24 Mar 2025 15:03:59 +0100 Subject: [PATCH] update(Plugin Theme):changes the way the primevue theme is replaced if the theme is not dark or light --- public/js/plugin/Theme.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/plugin/Theme.js b/public/js/plugin/Theme.js index 29ae4c4a4..d063b4d46 100644 --- a/public/js/plugin/Theme.js +++ b/public/js/plugin/Theme.js @@ -17,6 +17,10 @@ const toggleTheme = (theme)=>{ } else if (theme == "light") { stylesheet.attributes.href.value = stylesheet.attributes.href.value.replace("bootstrap4-dark-blue", "bootstrap4-light-blue"); } + else{ + if (stylesheet.attributes.href.value.includes("bootstrap4-dark-blue")) + stylesheet.attributes.href.value = stylesheet.attributes.href.value.replace("bootstrap4-dark-blue", "bootstrap4-light-blue"); + } localStorage.setItem("theme", theme); }