Skip to content
Snippets Groups Projects
Commit 8e0a0ab8 authored by mostafah%oeone.com's avatar mostafah%oeone.com
Browse files

Checked in patch for bug 322395: Preferences not working for firefox extension r=mvl

parent 40ef8793
No related branches found
No related tags found
No related merge requests found
......@@ -187,8 +187,13 @@ function calendarFinish()
function launchPreferences()
{
var applicationName = navigator.vendor;
if (applicationName == "Mozilla" || applicationName == "Firebird" || applicationName == "")
var applicationName="";
if (Components.classes["@mozilla.org/xre/app-info;1"]) {
var appInfo = Components.classes["@mozilla.org/xre/app-info;1"]
.getService(Components.interfaces.nsIXULAppInfo);
applicationName = appInfo.name;
}
if (applicationName == "SeaMonkey" || applicationName == "")
goPreferences( "calendarPanel", "chrome://calendar/content/pref/calendarPref.xul", "calendarPanel" );
else
window.openDialog("chrome://calendar/content/pref/prefBird.xul", "PrefWindow", "chrome,titlebar,resizable,modal");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment