From 700d05557c113b5757a61f656b91f3361e1e920c Mon Sep 17 00:00:00 2001 From: strig Date: Mon, 31 Jul 2017 16:27:15 -0400 Subject: [PATCH] Fix broken URL in 'Weather data provided by' link For DarkSky, there was a space in the url that was causing the link to break. This PR removes the space between the coords in the URL. --- src/extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.js b/src/extension.js index 67befa3..beb3d10 100644 --- a/src/extension.js +++ b/src/extension.js @@ -985,7 +985,7 @@ const OpenweatherMenuButton = new Lang.Class({ let coords = 0; if (arguments[0] && (arguments[0].search(">") != -1)) - coords = arguments[0].split(">")[0]; + coords = arguments[0].split(">")[0].replace(' ', ''); if ((coords.search(",") == -1) || isNaN(coords.split(",")[0]) || isNaN(coords.split(",")[1])) { Main.notify("Openweather", _("Invalid location! Please try to recreate it."));