mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10:53:39 +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
d14f63599e
commit
26268c68a2
@ -438,6 +438,11 @@
|
|||||||
parseInt(egw_script.getAttribute('data-websocket-account_id'))
|
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) {
|
catch(e) {
|
||||||
// ignore SecurityError exception if top is different security context / cross-origin
|
// ignore SecurityError exception if top is different security context / cross-origin
|
||||||
|
Loading…
Reference in New Issue
Block a user