mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Initialize the L10n
-instance as soon as possible in Firefox (PR 17115 follow-up)
Given that there's now a bit more asynchronicity in the l10n-initialization in the Firefox PDF Viewer, after PR 17115, try to limit the impact of that by moving it to occur a tiny bit earlier in the default viewer initialization.
This commit is contained in:
parent
d094e8aab0
commit
5c14c559dd
4 changed files with 24 additions and 24 deletions
|
@ -422,7 +422,7 @@ class FirefoxExternalServices extends DefaultExternalServices {
|
|||
FirefoxCom.request("updateEditorStates", data);
|
||||
}
|
||||
|
||||
static async createL10n(_options) {
|
||||
static async createL10n() {
|
||||
const [localeProperties] = await Promise.all([
|
||||
FirefoxCom.requestAsync("getLocaleProperties", null),
|
||||
document.l10n.ready,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue