no color if no color

This commit is contained in:
Cade Scroggins 2019-02-27 17:23:25 -08:00
parent b1b3d65a97
commit 1faa9b3b8f
No known key found for this signature in database
GPG key ID: 519697F4ACAF4893

View file

@ -399,8 +399,8 @@
}
.search-suggestion.highlight {
background: var(--background);
color: var(--foreground);
background: var(--foreground);
color: var(--background);
}
.search-suggestion b {
@ -1229,7 +1229,9 @@
_setBackgroundFromQuery(query) {
if (!this._colors) return;
this._formEl.style.background = this._parseQuery(query).color;
const color = this._parseQuery(query).color;
if (!color) return;
this._formEl.style.background = color;
}
_submitForm(e) {