summaryrefslogtreecommitdiffstats
path: root/devtools/client/framework/devtools.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/framework/devtools.js')
-rw-r--r--devtools/client/framework/devtools.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/devtools/client/framework/devtools.js b/devtools/client/framework/devtools.js
index 90f88023b..976a4b56d 100644
--- a/devtools/client/framework/devtools.js
+++ b/devtools/client/framework/devtools.js
@@ -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;
},