From bc65d7e44f87c045aeb45f7cfb7ebc99acecea79 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Fri, 1 Nov 2013 11:15:34 +0100 Subject: [PATCH] Do not use deprecated Soup.SessionAsync . --- src/extension.js | 5 +---- src/prefs.js | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/extension.js b/src/extension.js index bfe0558..1c0e0cd 100644 --- a/src/extension.js +++ b/src/extension.js @@ -122,10 +122,7 @@ const WEATHER_CONV_MPS_IN_KPH = 3.6; const WEATHER_CONV_MPS_IN_KNOTS = 1.94384449; const WEATHER_CONV_MPS_IN_FPS = 3.2808399; -// Soup session (see https://bugzilla.gnome.org/show_bug.cgi?id=661323#c64) (Simon Legner) -const _httpSession = new Soup.SessionAsync(); -Soup.Session.prototype.add_feature.call(_httpSession, new Soup.ProxyResolverDefault()); - +const _httpSession = new Soup.Session(); const WeatherMenuButton = new Lang.Class({ Name: 'WeatherMenuButton', diff --git a/src/prefs.js b/src/prefs.js index a1b0587..e19b1e4 100644 --- a/src/prefs.js +++ b/src/prefs.js @@ -65,9 +65,7 @@ const WEATHER_URL_BASE = 'http://api.openweathermap.org/data/2.5/'; const WEATHER_URL_CURRENT = WEATHER_URL_BASE + 'weather'; const WEATHER_URL_FIND = WEATHER_URL_BASE + 'find'; -// Soup session (see https://bugzilla.gnome.org/show_bug.cgi?id=661323#c64) (Simon Legner) -const _httpSession = new Soup.SessionAsync(); -Soup.Session.prototype.add_feature.call(_httpSession, new Soup.ProxyResolverDefault()); +const _httpSession = new Soup.Session(); let mCities = null;