Bug 1933289 - Load in-app-notification-manager async. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D230673 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
655150a02c
Коммит
96f4cf7c18
|
@ -316,13 +316,15 @@ var gMailInit = {
|
|||
}
|
||||
|
||||
if (Services.prefs.getBoolPref("mail.inappnotifications.enabled", false)) {
|
||||
ChromeUtils.importESModule(
|
||||
"chrome://messenger/content/in-app-notification-manager.mjs",
|
||||
{ global: "current" }
|
||||
);
|
||||
document
|
||||
.querySelector(".in-app-notification-root")
|
||||
.replaceChildren(document.createElement("in-app-notification-manager"));
|
||||
import("chrome://messenger/content/in-app-notification-manager.mjs")
|
||||
.then(() => {
|
||||
document
|
||||
.querySelector(".in-app-notification-root")
|
||||
.replaceChildren(
|
||||
document.createElement("in-app-notification-manager")
|
||||
);
|
||||
})
|
||||
.catch(console.error);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче