Browse Source

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.
pull/1138/head
Valentin Radu 3 years ago
parent
commit
cc0af464c3
  1. 1
      ep_weather_host/ep_weather_provider_google_script.h

1
ep_weather_host/ep_weather_provider_google_script.h

@ -417,6 +417,7 @@ function ep_weather_getData(imageBitmap, ch) {\n\
//console.log(res);\n\ //console.log(res);\n\
document.body.style.backgroundColor='transparent';\n\ document.body.style.backgroundColor='transparent';\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\ return res;\n\
}\n\ }\n\
var ep_result;\n\ var ep_result;\n\

Loading…
Cancel
Save