зеркало из https://github.com/mozilla/gecko-dev.git
Bug 884750 - Persistent logs options should apply instantly. r=paul
This commit is contained in:
Родитель
319c338204
Коммит
f832714d32
|
@ -383,18 +383,12 @@ WebConsoleFrame.prototype = {
|
|||
}.bind(this));
|
||||
},
|
||||
|
||||
_persistLog: null,
|
||||
|
||||
/**
|
||||
* Getter for the persistent logging preference. This value is cached per
|
||||
* instance to avoid reading the pref too often.
|
||||
* Getter for the persistent logging preference.
|
||||
* @type boolean
|
||||
*/
|
||||
get persistLog() {
|
||||
if (this._persistLog === null) {
|
||||
this._persistLog = Services.prefs.getBoolPref(PREF_PERSISTLOG);
|
||||
}
|
||||
return this._persistLog;
|
||||
return Services.prefs.getBoolPref(PREF_PERSISTLOG);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче