mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
fix theme switch to default bug and include google fonts in csp #6665
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
998769a888
commit
def62075c7
25 changed files with 5 additions and 6 deletions
|
@ -4,8 +4,8 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||
// Load saved theme from local storage
|
||||
const savedTheme = localStorage.getItem("theme");
|
||||
if (savedTheme) {
|
||||
const safeTheme = encodeURIComponent(savedTheme);
|
||||
themeStylesheet.href = `styles/themes/${safeTheme}/bootstrap.min.css`;
|
||||
const safeTheme = ((savedTheme != 'default') ? encodeURIComponent(savedTheme) : encodeURIComponent('..'));
|
||||
themeStylesheet.href = `styles/themes/${safeTheme}/bootstrap-min.css`;
|
||||
}
|
||||
|
||||
// Initialize Select2 on all select elements with the 'select2' class
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue