see #11 - attempt to respect proxy settings (patch by popsas-lt)

yahoo_weather
simon04 13 years ago
parent c1ea18fd45
commit 14203f055a
  1. 4
      src/extension.js

@ -449,6 +449,10 @@ WeatherMenuButton.prototype = {
load_json_async: function(url, fun) {
let here = this;
let session = new Soup.SessionAsync();
if (Soup.Session.prototype.add_feature != null)
Soup.Session.prototype.add_feature.call(session, new Soup.ProxyResolverDefault());
let message = Soup.Message.new('GET', url);
session.queue_message(message, function(session, message) {
let jp = new Json.Parser();

Loading…
Cancel
Save