allow city names with space #301

This commit is contained in:
end-4 2024-03-05 23:07:05 +07:00
parent b285071443
commit 1f1283f062

View file

@ -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')