commit 3290d8f8cf1cb3bfe3eec82191cad29dd0668ac9 parent 1654545d02ae1dd2f95f960537d2955a29ac3dba Author: Simon Kornblith <simon@simonster.com> Date: Mon, 21 Mar 2011 20:44:39 +0000 better handling of restart with tabs restored in Fx 4 Diffstat:
| M | chrome/content/zotero/tab.js | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/tab.js b/chrome/content/zotero/tab.js @@ -104,7 +104,8 @@ var ZoteroTab = new function() if(tabs.length > 1) { window.close(); } else { - this.containerWindow.BrowserGoHome(); + if(Zotero.isFx4) this.containerWindow.gBrowser.unpinTab(tabs[0]); + document.location.replace(this.containerWindow.gHomeButton.getHomePage()); } return; }