mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1036110 - Stop the B2G UI setting from overriding the js prefs setting and turning off logging. r=dougt
If gLoggingEnabled is already on during startup, that means it was set in js prefs.
This commit is contained in:
parent
00c9b18c16
commit
1428f007de
@ -293,7 +293,9 @@ WifiGeoPositionProvider.prototype = {
|
||||
let self = this;
|
||||
let settingsCallback = {
|
||||
handle: function(name, result) {
|
||||
if (name == SETTINGS_DEBUG_ENABLED) {
|
||||
// Stop the B2G UI setting from overriding the js prefs setting, and turning off logging
|
||||
// If gLoggingEnabled is already on during startup, that means it was set in js prefs.
|
||||
if (name == SETTINGS_DEBUG_ENABLED && !gLoggingEnabled) {
|
||||
gLoggingEnabled = result;
|
||||
} else if (name == SETTINGS_WIFI_ENABLED) {
|
||||
gWifiScanningEnabled = result;
|
||||
|
Loading…
Reference in New Issue
Block a user