mirror of
https://github.com/zotero/zotero.git
synced 2026-09-29 01:41:24 +00:00
fx128: Remove try/catch for Services.jsm not being available
Not sure if there are other errors here that we want to ignore, but the specified one should no longer be an issue.
This commit is contained in:
parent
97329752a1
commit
6b3ea14aa1
1 changed files with 4 additions and 9 deletions
|
|
@ -118,15 +118,10 @@ function goBuildEditContextMenu() {
|
|||
popup = document.documentElement.lastElementChild.firstElementChild;
|
||||
}
|
||||
|
||||
try {
|
||||
let menuitemSwitchTextDirection = popup.querySelector("[command='cmd_switchTextDirection']");
|
||||
let showSwitchTextDirection = Services.prefs.getBoolPref("bidi.browser.ui", false);
|
||||
menuitemSwitchTextDirection.hidden = !showSwitchTextDirection;
|
||||
menuitemSwitchTextDirection.previousElementSibling.hidden = !showSwitchTextDirection;
|
||||
}
|
||||
catch (e) {
|
||||
// Not worth failing over Services.jsm not being imported in a utility window
|
||||
}
|
||||
let menuitemSwitchTextDirection = popup.querySelector("[command='cmd_switchTextDirection']");
|
||||
let showSwitchTextDirection = Services.prefs.getBoolPref("bidi.browser.ui", false);
|
||||
menuitemSwitchTextDirection.hidden = !showSwitchTextDirection;
|
||||
menuitemSwitchTextDirection.previousElementSibling.hidden = !showSwitchTextDirection;
|
||||
|
||||
return popup;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue