tweaks to prefs window opening
This commit is contained in:
parent
0e46cdec10
commit
a1f327a97a
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue