mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 862353: Remove unnecessary code checking for mozSettings twice in Geolocation tests. r=reuben
This commit is contained in:
parent
3e1673a860
commit
daf84acd78
@ -99,11 +99,6 @@ function check_geolocation(location) {
|
||||
|
||||
function toggleGeolocationSetting(value, callback) {
|
||||
var mozSettings = window.navigator.mozSettings;
|
||||
if (!mozSettings) {
|
||||
addLoadEvent(toggleGeolocationSetting.bind(null, value, callback));
|
||||
return;
|
||||
}
|
||||
|
||||
var lock = mozSettings.createLock();
|
||||
|
||||
var geoenabled = {"geolocation.enabled": value};
|
||||
|
Loading…
Reference in New Issue
Block a user