Fix not working geolocation in addressbook

This commit is contained in:
Hadi Nategh 2022-08-24 14:57:07 +02:00
parent bb072b3b87
commit c4412b5ed1

View File

@ -1460,7 +1460,6 @@ class AddressbookApp extends EgwApp
// defined in addressbook_hooks::config // defined in addressbook_hooks::config
var default_url = 'https://maps.here.com/directions/drive{{%rs=/%rs}}%r0,%t0,%z0,%c0{{%d=/%d}}%r1,%t1,%z1+%c1'; var default_url = 'https://maps.here.com/directions/drive{{%rs=/%rs}}%r0,%t0,%z0,%c0{{%d=/%d}}%r1,%t1,%z1+%c1';
var geo_url = egw.config('geolocation_url'); var geo_url = egw.config('geolocation_url');
if (geo_url) geo_url = geo_url[0];
return geo_url || default_url; return geo_url || default_url;
} }