Allow user to pin normal tab
This commit is contained in:
parent
580d0df56d
commit
665d59215d
|
@ -63,7 +63,7 @@ var ZoteroOverlay = new function()
|
||||||
// load Zotero as a tab, if it isn't loading by default
|
// load Zotero as a tab, if it isn't loading by default
|
||||||
ZoteroOverlay.loadZoteroTab(true);
|
ZoteroOverlay.loadZoteroTab(true);
|
||||||
}
|
}
|
||||||
} else {
|
} else if(showInPref === 1) {
|
||||||
// close Zotero as a tab, in case it was pinned
|
// close Zotero as a tab, in case it was pinned
|
||||||
var zoteroTab = ZoteroOverlay.findZoteroTab();
|
var zoteroTab = ZoteroOverlay.findZoteroTab();
|
||||||
if(zoteroTab) gBrowser.removeTab(zoteroTab);
|
if(zoteroTab) gBrowser.removeTab(zoteroTab);
|
||||||
|
|
|
@ -83,7 +83,7 @@ var ZoteroTab = new function()
|
||||||
this.containerWindow.gBrowser.tabContainer.addEventListener("TabSelect", listener, false);
|
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
|
// on Fx 4, add an event listener so the pinned tab isn't restored on close
|
||||||
var pinnedTabCloser = function() {
|
var pinnedTabCloser = function() {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user