if not in tab mode and tabs are being saved and Zotero tab is the only tab open in a window, don't close it on startup
This commit is contained in:
parent
a6b03e5cf5
commit
1654545d02
1 changed files with 7 additions and 1 deletions
|
@ -99,7 +99,13 @@ var ZoteroTab = new function()
|
|||
|
||||
this._swapZoteroPane = function() {
|
||||
if(!this.containerWindow.ZoteroOverlay.isTab) {
|
||||
window.close();
|
||||
var tabs = (this.containerWindow.gBrowser.tabs
|
||||
? this.containerWindow.gBrowser.tabs : this.containerWindow.gBrowser.mTabs);
|
||||
if(tabs.length > 1) {
|
||||
window.close();
|
||||
} else {
|
||||
this.containerWindow.BrowserGoHome();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue