diff --git a/source/app/web/statics/app.js b/source/app/web/statics/app.js index 7aca6c91..2eb45f74 100644 --- a/source/app/web/statics/app.js +++ b/source/app/web/statics/app.js @@ -18,6 +18,16 @@ } catch (error) {} }, components:{Prism:PrismComponent}, + //Watchers + watch:{ + palette:{ + immediate:true, + handler(current, previous) { + document.querySelector("body").classList.remove(previous) + document.querySelector("body").classList.add(current) + } + } + }, //Data initialization data:{ version, diff --git a/source/app/web/statics/index.html b/source/app/web/statics/index.html index 194c848b..acdb50fb 100644 --- a/source/app/web/statics/index.html +++ b/source/app/web/statics/index.html @@ -237,6 +237,27 @@