1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #18270 from Snuffleupagus/issue-18264

Only use the l10n fallback bundle when normal ftl-file fetching failed (issue 18264)
This commit is contained in:
Tim van der Meij 2024-06-18 14:53:45 +02:00 committed by GitHub
commit c07dd17162
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,8 +74,7 @@ class GenericL10n extends L10n {
const bundle = await this.#createBundle(lang, baseURL, paths);
if (bundle) {
yield bundle;
}
if (lang === "en-us") {
} else if (lang === "en-us") {
yield this.#createBundleFallback(lang);
}
}