fix hidden browser creation in Z standalone
This commit is contained in:
parent
f79e18d3cb
commit
4fb708778a
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue