lowercase the results to get the appropriate background color

This commit is contained in:
buzz-lightsnack-2007 2024-05-25 11:26:51 +08:00
parent 39495a7ec5
commit 4635f40651

View file

@ -138,7 +138,7 @@ class Page_Results extends Page {
: false;
// Set the color.
(nested.dictionary.get(this[`data`][`analysis`], [`Rating`, `Trust`]) && document.querySelector(`summary`)) ? document.querySelector(`summary`).setAttribute(`result`, (nested.dictionary.get(this[`data`][`analysis`], [`Rating`, `Trust`]))) : false;
(nested.dictionary.get(this[`data`][`analysis`], [`Rating`, `Trust`]) && document.querySelector(`summary`)) ? document.querySelector(`summary`).setAttribute(`result`, (nested.dictionary.get(this[`data`][`analysis`], [`Rating`, `Trust`])).toLowerCase()) : false;
}
};
}