tweaks to prefs window opening
This commit is contained in:
parent
0e46cdec10
commit
a1f327a97a
|
@ -62,6 +62,7 @@ function init()
|
||||||
|
|
||||||
if(window.arguments) {
|
if(window.arguments) {
|
||||||
_io = window.arguments[0];
|
_io = window.arguments[0];
|
||||||
|
if(_io.wrappedJSObject) _io = _io.wrappedJSObject;
|
||||||
|
|
||||||
if(_io.pane) {
|
if(_io.pane) {
|
||||||
var pane = document.getElementById(_io.pane);
|
var pane = document.getElementById(_io.pane);
|
||||||
|
|
|
@ -1062,8 +1062,9 @@ function ChromeExtensionHandler() {
|
||||||
if(s.length == 2) {
|
if(s.length == 2) {
|
||||||
data.pane = s[1];
|
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"]
|
var win = Components.classes["@mozilla.org/appshell/window-mediator;1"]
|
||||||
.getService(Components.interfaces.nsIWindowMediator)
|
.getService(Components.interfaces.nsIWindowMediator)
|
||||||
.getMostRecentWindow("navigator:browser");
|
.getMostRecentWindow("navigator:browser");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user