Skip to content

Commit

Permalink
Merge pull request #7862 from yurydelendik/issue7861
Browse files Browse the repository at this point in the history
Don't fail if mozL10n is not present.
  • Loading branch information
Snuffleupagus authored Dec 1, 2016
2 parents 8e8af62 + 7b6ba5e commit 48ab646
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 48ab646

Please sign in to comment.