Allow user to pin normal tab

This commit is contained in:
Simon Kornblith 2011-08-17 22:17:33 +00:00
parent 580d0df56d
commit 665d59215d
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ var ZoteroOverlay = new function()
// load Zotero as a tab, if it isn't loading by default
ZoteroOverlay.loadZoteroTab(true);
}
} else {
} else if(showInPref === 1) {
// close Zotero as a tab, in case it was pinned
var zoteroTab = ZoteroOverlay.findZoteroTab();
if(zoteroTab) gBrowser.removeTab(zoteroTab);

View file

@ -83,7 +83,7 @@ var ZoteroTab = new function()
this.containerWindow.gBrowser.tabContainer.addEventListener("TabSelect", listener, false);
}
if(Zotero && Zotero.isFx4) {
if(Zotero && Zotero.isFx4 && Zotero.Prefs.get("showIn") == 3) {
// on Fx 4, add an event listener so the pinned tab isn't restored on close
var pinnedTabCloser = function() {
try {