Fix tab bar initialization on macOS after isPDFBuild change

This commit is contained in:
Dan Stillman 2021-02-25 03:22:27 -05:00
parent e166a04876
commit ebf45a3232

View file

@ -42,7 +42,8 @@ const ZoteroStandalone = new function() {
window.document.documentElement.setAttribute('sizemode', 'normal');
}
if (Zotero.isMac && Zotero.isPDFBuild) {
// Create tab bar by default
if (Zotero.isMac) {
document.documentElement.setAttribute('drawintitlebar', true);
document.documentElement.setAttribute('tabsintitlebar', true);
document.documentElement.setAttribute('chromemargin', '0,-1,-1,-1');
@ -80,6 +81,13 @@ const ZoteroStandalone = new function() {
ZoteroStandalone.DebugOutput.init();
// TEMP: Remove tab bar if not PDF build
if (Zotero.isMac && !Zotero.isPDFBuild) {
document.documentElement.removeAttribute('drawintitlebar');
document.documentElement.removeAttribute('tabsintitlebar');
document.documentElement.removeAttribute('chromemargin');
}
Zotero.hideZoteroPaneOverlays();
ZoteroPane.init();
ZoteroPane.makeVisible();