Use Zotero.isMac in customElements CE patch
AppConstants is occasionally undefined - not sure why.
This commit is contained in:
parent
810402c9c7
commit
17f758d0cf
1 changed files with 1 additions and 2 deletions
|
@ -65,8 +65,7 @@ Services.scriptloader.loadSubScript('chrome://zotero/content/elements/collapsibl
|
|||
});
|
||||
}
|
||||
|
||||
let isMac = AppConstants.platform == 'macosx';
|
||||
if (isMac) {
|
||||
if (Zotero.isMac) {
|
||||
// Monkey-patch the toolbarbutton CE so it shows a native menu popup
|
||||
let MozToolbarbuttonPrototype = customElements.get('toolbarbutton').prototype;
|
||||
if (MozToolbarbuttonPrototype) {
|
||||
|
|
Loading…
Reference in a new issue