Browse Source

Don't fail if mozL10n is not present.

Yury Delendik 9 years ago
parent
commit
7b6ba5e9fd
  1. 3
      web/ui_utils.js

3
web/ui_utils.js

@ -427,7 +427,8 @@ var animationStarted = new Promise(function (resolve) {
*/ */
var localized = new Promise(function (resolve, reject) { var localized = new Promise(function (resolve, reject) {
if (!mozL10n) { if (!mozL10n) {
reject(new Error('mozL10n service is not available.')); // Resolve as localized even if mozL10n is not available.
resolve();
return; return;
} }
if (mozL10n.getReadyState() !== 'loading') { if (mozL10n.getReadyState() !== 'loading') {

Loading…
Cancel
Save