Fix restoring after closing from full-screen mode on macOS
This commit is contained in:
parent
ea513edf73
commit
57881ff587
2 changed files with 5 additions and 7 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue