www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 57881ff5874a619d8cae5f9447989ec07fb31de1
parent ea513edf732979d7ec1da089a488bce54de4e6a0
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 13 Jul 2017 18:27:06 -0400

Fix restoring after closing from full-screen mode on macOS

Diffstat:
Mchrome/content/zotero/standalone/standalone.js | 5+++++
Mchrome/content/zotero/zoteroPane.js | 7-------
2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/chrome/content/zotero/standalone/standalone.js b/chrome/content/zotero/standalone/standalone.js @@ -33,6 +33,11 @@ const ZoteroStandalone = new function() { * Run when standalone window first opens */ this.onLoad = function() { + // Fix window without menubar/titlebar when Zotero is closed in full-screen mode in OS X 10.11+ + if (Zotero.isMac && window.document.documentElement.getAttribute('sizemode') == 'fullscreen') { + window.document.documentElement.setAttribute('sizemode', 'normal'); + } + Zotero.Promise.try(function () { if(!Zotero) { throw true; diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -73,13 +73,6 @@ var ZoteroPane = new function() this.init = function () { Zotero.debug("Initializing Zotero pane"); - // Fix window without menubar/titlebar when Standalone is closed in full-screen mode - // in OS X 10.11 - if (Zotero.isMac && Zotero.isStandalone - && window.document.documentElement.getAttribute('sizemode') == 'fullscreen') { - window.document.documentElement.setAttribute('sizemode', 'normal'); - } - // For now, keep actions menu in the DOM and show it in Firefox for development if (!Zotero.isStandalone) { document.getElementById('zotero-tb-actions-menu-separator').hidden = false;