From 002132bc4becff9bc34a893ad7483b120a89a473 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 7 May 2022 01:17:06 -0400 Subject: [PATCH] fx-compat: Populate Window menu on macOS --- chrome/content/zotero/standalone/standalone.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/standalone/standalone.js b/chrome/content/zotero/standalone/standalone.js index dfb65cd2f6..5e9f4fbaa6 100644 --- a/chrome/content/zotero/standalone/standalone.js +++ b/chrome/content/zotero/standalone/standalone.js @@ -42,8 +42,12 @@ const ZoteroStandalone = new function() { window.document.documentElement.setAttribute('sizemode', 'normal'); } - // Create tab bar by default if (Zotero.isMac) { + let elem = document.createElementNS('http://www.w3.org/1999/xhtml', 'script'); + elem.src = 'chrome://global/content/macWindowMenu.js'; + document.documentElement.appendChild(elem); + + // Create tab bar by default document.documentElement.setAttribute('drawintitlebar', true); document.documentElement.setAttribute('tabsintitlebar', true); document.documentElement.setAttribute('chromemargin', '0,-1,-1,-1');