diff --git a/index.html b/index.html
index 34e4d55..c1b72a5 100644
--- a/index.html
+++ b/index.html
@@ -6,6 +6,20 @@
@@ -1343,8 +1415,15 @@
}
_setColorsFromQuery(query) {
- const color = this._parseQuery(query).color;
- this._formEl.style.background = color || '';
+ const { color } = this._parseQuery(query);
+
+ if (color) {
+ this._formEl.style.background = color;
+ $.bodyClassAdd('color');
+ } else {
+ this._formEl.style.background = '';
+ $.bodyClassRemove('color');
+ }
}
_submitForm(e) {
@@ -1367,6 +1446,8 @@
}
}
+ $.bodyClassAdd(CONFIG.theme);
+
const help = new Help({
commands: CONFIG.commands,
newTab: CONFIG.queryNewTab,