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:
Simon Kornblith 2011-03-21 20:40:50 +00:00
parent a6b03e5cf5
commit 1654545d02

View file

@ -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;
}