Refractoring Stage 6.11 The account manager now uses explicit mail and DAV feature APIs, is scoped locally instead of exposing a global helper, and loads after the DAV feature registers its API. Root and www/ assets are synchronized.

This commit is contained in:
2026-10-16 22:11:52 +03:00
parent 3013e489ed
commit e80f285e8c
11 changed files with 45 additions and 18 deletions
+5
View File
@@ -40,3 +40,8 @@ function showDavConnect(type){
root.querySelector('#dav-server-url').focus();
}
document.addEventListener('click',event=>{const button=event.target.closest('#caldav-sync,#carddav-sync');if(!button)return;event.preventDefault();event.stopImmediatePropagation();syncDav(button.id.startsWith('caldav')?'caldav':'carddav')},true);
window.epMailFeatures.dav = Object.freeze({
openManager: openDavManager,
sync: syncDav
});