mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
* mailto: fix wrong URL registered for on premise installation (you need to delete it in the browser first!)
Chrome: Datenschutz und Sicherheit > Website-Einstellungen > Zusätzliche-Berechtigungen (aufklappen!) > Protokoll-Handler
This commit is contained in:
parent
59854cfe3c
commit
4616fb03d0
@ -38,7 +38,7 @@ egw.extend('config', egw.MODULE_GLOBAL, function()
|
||||
{
|
||||
const _ask_mailto_handler = () => {
|
||||
let url = egw_webserverUrl;
|
||||
if (url[0] === '/') url = document.location.protocol+'://'+document.location.hostname+(url !== '/' ? url : '');
|
||||
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');
|
||||
// remember not to ask again for this "session"
|
||||
window.sessionStorage.setItem('asked-mailto-handler', 'yes');
|
||||
|
Loading…
Reference in New Issue
Block a user