mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
update(Plugin Theme):changes the way the primevue theme is replaced if the theme is not dark or light
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user