Refractoring Stage 6.23 Moved the mail API factory from the standalone window.epMailUiModules global into window.epMailFeatures.modules; mail-ui.js now uses the shared feature namespace. Bumped to 0.4.35 (Android version code 435) and updated REFACTOR_PLAN.md.
This commit is contained in:
+1
-2
@@ -791,7 +791,7 @@ if (window.daybreakMail) {
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
const mailUiApi = window.epMailUiModules.createMailUiApi({
|
||||
const mailUiApi = window.epMailFeatures.modules.createMailUiApi({
|
||||
state: window.epMailState,
|
||||
getConnectedAccount: () => mailFeatureState.connectedAccount,
|
||||
setConnectedAccount: account => { mailFeatureState.connectedAccount = account; },
|
||||
@@ -813,6 +813,5 @@ const mailUiApi = window.epMailUiModules.createMailUiApi({
|
||||
setOpenMessage: renderer => appShell.wrapOpenMessage(() => renderer),
|
||||
setShowCompose: renderer => appShell.wrapShowCompose(() => renderer)
|
||||
});
|
||||
window.epMailFeatures = window.epMailFeatures || {};
|
||||
window.epMailFeatures.mail = mailUiApi;
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user