summaryrefslogtreecommitdiffstats
path: root/devtools/client/inspector/markup
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-08 20:05:53 -0400
committerAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-13 11:37:45 -0400
commit609a7215e6ef705fd098fd4adb4f922795ff1119 (patch)
treecba7742899754d237f2eab6d74634f4f23fd7667 /devtools/client/inspector/markup
parent7591326915a100b54ca17ad6fedb391645bac6b5 (diff)
downloadUXP-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/inspector/markup')
-rw-r--r--devtools/client/inspector/markup/markup.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/devtools/client/inspector/markup/markup.js b/devtools/client/inspector/markup/markup.js
index d6e9f8c11..a4b65c899 100644
--- a/devtools/client/inspector/markup/markup.js
+++ b/devtools/client/inspector/markup/markup.js
@@ -73,11 +73,8 @@ function MarkupView(inspector, frame, controllerWindow) {
this._elt = this.doc.querySelector("#root");
this.htmlEditor = new HTMLEditor(this.doc);
- try {
- this.maxChildren = Services.prefs.getIntPref("devtools.markup.pagesize");
- } catch (ex) {
- this.maxChildren = DEFAULT_MAX_CHILDREN;
- }
+ this.maxChildren = Services.prefs.getIntPref("devtools.markup.pagesize",
+ DEFAULT_MAX_CHILDREN);
this.collapseAttributes =
Services.prefs.getBoolPref(ATTR_COLLAPSE_ENABLED_PREF);