Merge pull request #192 from strig/patch-2

Fix possibly broken URL in 'Weather data provided by'-link, if user accidently adds a space in the coordinates when manual editing them.
merge-requests/218/head
jenslody 7 years ago committed by GitHub
commit f7ee98d164
  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