fix hidden browser creation in Z standalone

This commit is contained in:
Simon Kornblith 2010-09-23 04:57:36 +00:00
parent f79e18d3cb
commit 4fb708778a

View file

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