mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 687332: Fix up geolocation. r=dougt
This commit is contained in:
parent
f17eb89d4d
commit
3982be1396
@ -239,10 +239,10 @@ WifiGeoPositionProvider.prototype = {
|
||||
xhr.mozBackgroundRequest = true;
|
||||
xhr.open("GET", providerUrl, false);
|
||||
xhr.channel.loadFlags = Ci.nsIChannel.LOAD_ANONYMOUS;
|
||||
xhr.onerror = function(req) {
|
||||
xhr.addEventListener("error", function(req) {
|
||||
LOG("onerror: " + req);
|
||||
};
|
||||
xhr.onload = function (req) {
|
||||
}, false);
|
||||
xhr.addEventListener("load", function (req) {
|
||||
LOG("service returned: " + req.target.responseText);
|
||||
response = JSON.parse(req.target.responseText);
|
||||
/*
|
||||
@ -288,7 +288,7 @@ WifiGeoPositionProvider.prototype = {
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}, false);
|
||||
|
||||
LOG("************************************* ------>>>> sending.");
|
||||
xhr.send(null);
|
||||
|
Loading…
Reference in New Issue
Block a user