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

@ -195,12 +195,7 @@ DevTools.prototype = {
return tool;
}
let enabled;
try {
enabled = Services.prefs.getBoolPref(tool.visibilityswitch);
} catch (e) {
enabled = true;
}
let enabled = Services.prefs.getBoolPref(tool.visibilityswitch, true);
return enabled ? tool : null;
},