mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:49:10 +01:00
fix Safari (at least 15.5) gives error link-registry not defined
caused by not implemented navigator.registerProtocolHandler()
This commit is contained in:
parent
05e53f049d
commit
989a2e1eb0
@ -31,7 +31,8 @@ egw.extend('config', egw.MODULE_GLOBAL, function()
|
||||
*/
|
||||
function install_mailto_handler()
|
||||
{
|
||||
if (document.location.href.match(/(\?|&)cd=yes(&|$)/))
|
||||
if (document.location.href.match(/(\?|&)cd=yes(&|$)/) &&
|
||||
typeof navigator.registerProtocolHandler === 'function') // eg. Safari 15.5 does NOT implement it
|
||||
{
|
||||
let url = egw_webserverUrl;
|
||||
if (url[0] === '/') url = document.location.protocol+'://'+document.location.hostname+(url !== '/' ? url : '');
|
||||
|
Loading…
Reference in New Issue
Block a user