From 1f1283f0621bb9d2ce3eafbf36e64fbd65d25927 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 5 Mar 2024 23:07:05 +0700 Subject: [PATCH] allow city names with space #301 --- .config/ags/modules/bar/normal/system.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/ags/modules/bar/normal/system.js b/.config/ags/modules/bar/normal/system.js index 61f0d5ee..4201580e 100644 --- a/.config/ags/modules/bar/normal/system.js +++ b/.config/ags/modules/bar/normal/system.js @@ -185,7 +185,7 @@ const BatteryModule = () => Stack({ } }); if (userOptions.weather.city != '' && userOptions.weather.city != null) { - updateWeatherForCity(userOptions.weather.city); + updateWeatherForCity(userOptions.weather.city.replace(/ /g, '%20')); } else { Utils.execAsync('curl ipinfo.io')