Issue #991 Part 3: Devtools

This commit is contained in:
Ascrod 2019-04-08 20:05:53 -04:00 committed by Roy Tam
commit e2e42f0e1a
5 changed files with 12 additions and 41 deletions

View file

@ -1131,12 +1131,7 @@ Toolbox.prototype = {
setToolboxButtonsVisibility: function () {
this.toolboxButtons.forEach(buttonSpec => {
let { visibilityswitch, button, isTargetSupported } = buttonSpec;
let on = true;
try {
on = Services.prefs.getBoolPref(visibilityswitch);
} catch (ex) {
// Do nothing.
}
let on = Services.prefs.getBoolPref(visibilityswitch, true);
on = on && isTargetSupported(this.target);