Merge pull request #7862 from yurydelendik/issue7861

Don't fail if mozL10n is not present.
This commit is contained in:
Jonas Jenwald 2016-12-01 16:06:29 +01:00 committed by GitHub
commit 48ab6463df

View File

@ -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') {