diff --git a/www/assets/js/main.js b/www/assets/js/main.js index fa4cb88..a815b08 100644 --- a/www/assets/js/main.js +++ b/www/assets/js/main.js @@ -100,7 +100,7 @@ router.on("routeChange", function (newRoute) { function setAppTheme(theme) { if (theme == "light") { - $("#app").removeClass("theme-dark"); + $("body").removeClass("theme-dark"); if (platform_type == "cordova" && typeof StatusBar !== 'undefined') { StatusBar.styleDefault(); if (device.platform == "Android") { @@ -110,7 +110,7 @@ function setAppTheme(theme) { } } } else if (theme == "dark") { - $("#app").addClass("theme-dark"); + $("body").addClass("theme-dark"); if (platform_type == "cordova" && typeof StatusBar !== 'undefined') { StatusBar.styleLightContent(); StatusBar.backgroundColorByHexString("#000000"); diff --git a/www/assets/js/map_maplibre.js b/www/assets/js/map_maplibre.js index 5c3cdf2..fbe37ca 100644 --- a/www/assets/js/map_maplibre.js +++ b/www/assets/js/map_maplibre.js @@ -7,7 +7,7 @@ function maplibreMap(containerEl, interactive) { var theme = "liberty"; - if ($("#app").hasClass("theme-dark")) { + if ($("body").hasClass("theme-dark")) { theme = "libertydark"; } diff --git a/www/pages/account.html b/www/pages/account.html index b8509d4..189ec03 100644 --- a/www/pages/account.html +++ b/www/pages/account.html @@ -43,7 +43,7 @@