From 4635f40651f45d849d31570a6ec48fecf23d7efa Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sat, 25 May 2024 11:26:51 +0800 Subject: [PATCH] lowercase the results to get the appropriate background color --- src/scripts/pages/results.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/pages/results.js b/src/scripts/pages/results.js index 5416309..5693d11 100644 --- a/src/scripts/pages/results.js +++ b/src/scripts/pages/results.js @@ -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; } }; }