bug 52674, changing url for privacy tutorial, r=dveditz,ben, a=verah,ben,dveditz,mcarlson,matt

This commit is contained in:
morse%netscape.com 2006-05-17 02:27:27 +00:00
parent 07fdcd40b2
commit 366d1acd9c

View File

@ -47,8 +47,17 @@
function viewTutorial()
{
window.openDialog
("chrome://communicator/content/wallet/privacy.xul","","modal=yes,chrome,resizable=yes,height=400,width=600", 0);
const options = "modal=yes,chrome,resizable=yes,height=400,width=600";
const fallbackURL = "chrome://communicator/content/wallet/privacy.xul";
try {
var pref = Components.classes["@mozilla.org/preferences;1"].getService();
if(pref)
pref = pref.QueryInterface( Components.interfaces.nsIPref );
window.openDialog(pref.getLocalizedUnicharPref("wallet.TutorialFromPrefs"),"",options, 0);
}
catch(e) {
window.openDialog(fallbackURL,"",options, 0);
}
}