fx-compat: Populate Window menu on macOS

This commit is contained in:
Dan Stillman 2022-05-07 01:17:06 -04:00
parent ebc511f418
commit 002132bc4b

View file

@ -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');