tweaks to prefs window opening

This commit is contained in:
Simon Kornblith 2010-11-07 04:18:58 +00:00
parent 0e46cdec10
commit a1f327a97a
2 changed files with 3 additions and 1 deletions

View file

@ -62,6 +62,7 @@ function init()
if(window.arguments) {
_io = window.arguments[0];
if(_io.wrappedJSObject) _io = _io.wrappedJSObject;
if(_io.pane) {
var pane = document.getElementById(_io.pane);

View file

@ -1062,8 +1062,9 @@ function ChromeExtensionHandler() {
if(s.length == 2) {
data.pane = s[1];
}
data.wrappedJSObject = data;
if(Zotero.isFx4) {
if(Zotero.isFx4 || !Zotero.isMac) {
var win = Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator)
.getMostRecentWindow("navigator:browser");