diff options
Diffstat (limited to 'chrome/content/redirector.js')
-rw-r--r-- | chrome/content/redirector.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/content/redirector.js b/chrome/content/redirector.js index 622f170..62966d6 100644 --- a/chrome/content/redirector.js +++ b/chrome/content/redirector.js @@ -266,14 +266,18 @@ var Redirector = { }, openHelp : function() { + var windowName = "redirectorHelp"; var windowsMediator = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator); var win; var iter = windowsMediator.getEnumerator(null); while (iter.hasMoreElements()) { win = iter.getNext(); - alert(win.name); + if (win.name == windowName) { + win.focus(); + return; + } } - //window.openDialog("chrome://redirector/content/help.html", windowName, "chrome,dialog,resizable=yes,location=0,toolbar=0,status=0,width=800px,height=600px,centerscreen", this); + window.openDialog("chrome://redirector/content/help.html", windowName, "chrome,dialog,resizable=yes,location=0,toolbar=0,status=0,width=800px,height=600px,centerscreen", this); }, |