Skip to content

Commit

Permalink
Don't fail if mozL10n is not present.
Browse files Browse the repository at this point in the history
  • Loading branch information
yurydelendik committed Dec 1, 2016
1 parent 8e8af62 commit 7b6ba5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/ui_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ var animationStarted = new Promise(function (resolve) {
*/
var localized = new Promise(function (resolve, reject) {
if (!mozL10n) {
reject(new Error('mozL10n service is not available.'));
// Resolve as localized even if mozL10n is not available.
resolve();
return;
}
if (mozL10n.getReadyState() !== 'loading') {
Expand Down

0 comments on commit 7b6ba5e

Please sign in to comment.