mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
* Mail: register EGroupware as protocol handler for mail, you need to click on the double-diamond in the url bar and confirm it
This commit is contained in:
parent
817aba5af6
commit
ec8c38b882
@ -474,6 +474,11 @@ window.app = {classes: {}};
|
||||
parseInt(egw_script.getAttribute('data-websocket-account_id'))
|
||||
);
|
||||
}
|
||||
|
||||
// register our mail as mailto protocol handler
|
||||
let url = egw_webserverUrl;
|
||||
if (url[0] === '/') url = document.location.protocol+'://'+document.location.hostname+(url !== '/' ? url : '');
|
||||
navigator.registerProtocolHandler('mailto', url+'/index.php?menuaction=mail.mail_compose.compose&preset[mailto]=%s', 'Mail');
|
||||
}
|
||||
catch(e) {
|
||||
// ignore SecurityError exception if top is different security context / cross-origin
|
||||
@ -506,4 +511,4 @@ window.app = {classes: {}};
|
||||
window.et2_call = function(_func)
|
||||
{
|
||||
return egw.applyFunc(_func, [].slice.call(arguments, 1), window);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user