зеркало из https://github.com/mozilla/gecko-dev.git
fix js exception when the smtp server is not defined
This commit is contained in:
Родитель
6803a372d3
Коммит
a26bca573d
|
@ -47,8 +47,13 @@ function onLoad() {
|
|||
smtpService =
|
||||
Components.classes["component://netscape/messengercompose/smtp"].getService(Components.interfaces.nsISmtpService);;
|
||||
|
||||
wizardContents["smtp.hostname"] = smtpService.defaultServer.hostname;
|
||||
dump("initialized with " + wizardContents["smtp.hostname"] + "\n");
|
||||
try {
|
||||
wizardContents["smtp.hostname"] = smtpService.defaultServer.hostname;
|
||||
dump("initialized with " + wizardContents["smtp.hostname"] + "\n");
|
||||
}
|
||||
catch (ex) {
|
||||
dump("failed to get the smtp hostname\n");
|
||||
}
|
||||
init();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче