www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 4fb708778a664a859924c13dcb8b36b5df9ec53c
parent f79e18d3cb114cf1acf13455a6ae5a9d0d983674
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu, 23 Sep 2010 04:57:36 +0000

fix hidden browser creation in Z standalone


Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -2617,6 +2617,11 @@ Zotero.Browser = new function() { var win = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator) .getMostRecentWindow("navigator:browser"); + if(!win) { + var win = Components.classes["@mozilla.org/appshell/window-mediator;1"] + .getService(Components.interfaces.nsIWindowWatcher) + .activeWindow; + } } // Create a hidden browser