diff options
author | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-04-08 20:05:53 -0400 |
---|---|---|
committer | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-04-13 11:37:45 -0400 |
commit | 609a7215e6ef705fd098fd4adb4f922795ff1119 (patch) | |
tree | cba7742899754d237f2eab6d74634f4f23fd7667 /devtools/client/framework/toolbox.js | |
parent | 7591326915a100b54ca17ad6fedb391645bac6b5 (diff) | |
download | UXP-609a7215e6ef705fd098fd4adb4f922795ff1119.tar UXP-609a7215e6ef705fd098fd4adb4f922795ff1119.tar.gz UXP-609a7215e6ef705fd098fd4adb4f922795ff1119.tar.lz UXP-609a7215e6ef705fd098fd4adb4f922795ff1119.tar.xz UXP-609a7215e6ef705fd098fd4adb4f922795ff1119.zip |
Issue #991 Part 3: Devtools
Diffstat (limited to 'devtools/client/framework/toolbox.js')
-rw-r--r-- | devtools/client/framework/toolbox.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/devtools/client/framework/toolbox.js b/devtools/client/framework/toolbox.js index 926e30647..cde7de0e4 100644 --- a/devtools/client/framework/toolbox.js +++ b/devtools/client/framework/toolbox.js @@ -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); |