Bug 1560307 - Handle missing server type description for addon-provided server types in account manager. r=jork DONTBUILD
This commit is contained in:
Родитель
52ea42c3d8
Коммит
bcf328da9b
|
@ -156,7 +156,14 @@ function initServerType() {
|
|||
var propertyName = "serverType-" + serverType;
|
||||
|
||||
var messengerBundle = document.getElementById("bundle_messenger");
|
||||
var verboseName = messengerBundle.getString(propertyName);
|
||||
var verboseName;
|
||||
try {
|
||||
verboseName = messengerBundle.getString(propertyName);
|
||||
} catch (e) {
|
||||
// Addon-provided server types do not have a description string,
|
||||
// then display the raw server type.
|
||||
verboseName = serverType;
|
||||
}
|
||||
setDivText("servertype.verbose", verboseName);
|
||||
|
||||
secureSelect(true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче