mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1836974 - Rename createLanguageIdEngine function r=gregtatum
Renames function to getOrCreateLanguageIdEngine to more accurately reflect what it does. Differential Revision: https://phabricator.services.mozilla.com/D180743
This commit is contained in:
parent
d1b927e773
commit
5f4fb76723
@ -206,7 +206,7 @@ export class AboutTranslationsChild extends JSWindowActorChild {
|
||||
}
|
||||
return this.#convertToContentPromise(
|
||||
this.#getTranslationsChild()
|
||||
.createLanguageIdEngine()
|
||||
.getOrCreateLanguageIdEngine()
|
||||
.then(engine => {
|
||||
this.languageIdEngine = engine;
|
||||
})
|
||||
|
@ -144,7 +144,7 @@ export class TranslationsChild extends JSWindowActorChild {
|
||||
});
|
||||
}
|
||||
|
||||
createLanguageIdEngine() {
|
||||
getOrCreateLanguageIdEngine() {
|
||||
return lazy.LanguageIdEngine.getOrCreate(() => {
|
||||
if (this.#isPageHidden) {
|
||||
throw new Error("The page was already hidden.");
|
||||
|
Loading…
Reference in New Issue
Block a user