guard getBoolPref(kPrefWebIDEInNavbar) with try-catch block

This commit is contained in:
Roy Tam 2019-10-19 11:41:08 +08:00
commit 56f0c32c14

View file

@ -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.