mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Don't fail if mozL10n is not present.
This commit is contained in:
parent
8e8af62faf
commit
7b6ba5e9fd
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue