From 56f0c32c1417eae579230e2809ddba55242f6ae1 Mon Sep 17 00:00:00 2001 From: Roy Tam Date: Sat, 19 Oct 2019 11:41:08 +0800 Subject: [PATCH] guard getBoolPref(kPrefWebIDEInNavbar) with try-catch block --- .../basilisk/components/customizableui/CustomizableUI.jsm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/basilisk/components/customizableui/CustomizableUI.jsm b/application/basilisk/components/customizableui/CustomizableUI.jsm index 81c49876ab..46a0b2da08 100644 --- a/application/basilisk/components/customizableui/CustomizableUI.jsm +++ b/application/basilisk/components/customizableui/CustomizableUI.jsm @@ -224,9 +224,11 @@ var CustomizableUIInternal = { "home-button", ]; + try { if (Services.prefs.getBoolPref(kPrefWebIDEInNavbar)) { navbarPlacements.push("webide-button"); } + } catch(e) {} // Place this last, when createWidget is called for pocket, it will // append to the toolbar.