зеркало из https://github.com/mozilla/pjs.git
fix for #94067. catch the js exception we get when there is no default account.
this happens the first time you use the account wizard on a new profile. r/sr=bienvenu
This commit is contained in:
Родитель
947173651a
Коммит
2d7fd2e0d8
|
@ -140,8 +140,15 @@ function onLoad() {
|
||||||
else
|
else
|
||||||
wizardManager.LoadPage("accounttype", false);
|
wizardManager.LoadPage("accounttype", false);
|
||||||
|
|
||||||
|
try {
|
||||||
gDefaultAccount = accountm.defaultAccount;
|
gDefaultAccount = accountm.defaultAccount;
|
||||||
}
|
}
|
||||||
|
catch (ex) {
|
||||||
|
// no default account, this is expected the first time you launch mail
|
||||||
|
// on a new profile
|
||||||
|
gDefaultAccount = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function onCancel()
|
function onCancel()
|
||||||
|
|
Загрузка…
Ссылка в новой задаче