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:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user