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.
merge-requests/218/head
strig 7 years ago committed by GitHub
parent 62a751d3ff
commit 700d05557c
  1. 2
      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."));

Loading…
Cancel
Save