From cc0af464c38c501513335dae00d6a62862f5a3ed Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Wed, 1 Mar 2023 20:41:09 +0200 Subject: [PATCH] Weather: Fixed a bug that displayed the widget area using a different background color It seems Google changed the widget and explicitly set a background color, so this patch takes that into account and removes it. Previously, the widget did not have a background, rather inheriting it from the `body` element. --- ep_weather_host/ep_weather_provider_google_script.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ep_weather_host/ep_weather_provider_google_script.h b/ep_weather_host/ep_weather_provider_google_script.h index b323161..26e779b 100644 --- a/ep_weather_host/ep_weather_provider_google_script.h +++ b/ep_weather_host/ep_weather_provider_google_script.h @@ -417,6 +417,7 @@ function ep_weather_getData(imageBitmap, ch) {\n\ //console.log(res);\n\ document.body.style.backgroundColor='transparent';\n\ document.body.style.backgroundColor='transparent';\n\ + Array.from(document.getElementsByClassName(\"Ww4FFb\")).forEach((element) => {element.style.backgroundColor = \"transparent\";});\n\ return res;\n\ }\n\ var ep_result;\n\