From e801a99f67d8912c7c3aa66bf6647ef36741f9a1 Mon Sep 17 00:00:00 2001 From: Envision <9063072+elapsingdreams@user.noreply.gitee.com> Date: Mon, 12 Aug 2024 19:13:03 +0800 Subject: [PATCH] =?UTF-8?q?:adhesive=5Fbandage:=E9=9D=9E=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E7=9A=84=E7=AE=80=E5=8D=95=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?:=E6=8F=92=E4=BB=B6=E6=9C=8D=E5=8A=A1=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/resources/liteyuki_weather/templates/js/weather_now.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/resources/liteyuki_weather/templates/js/weather_now.js b/src/resources/liteyuki_weather/templates/js/weather_now.js index 8e9b9e7a..4e02fdd3 100644 --- a/src/resources/liteyuki_weather/templates/js/weather_now.js +++ b/src/resources/liteyuki_weather/templates/js/weather_now.js @@ -178,7 +178,6 @@ function get_time_hour(fxTime) { return fxTime.split("T")[1].split("+")[0] } -let attrinfo = document.getElementById('attribution-info'); -if (!is_dev & !attr) attrinfo.parentElement.style.display = "none"; + attrinfo.innerText = is_dev ? "Weather Service Drived by QWeather" : (attr ? attr : "Weather Service Drived by QWeather"); \ No newline at end of file