Fix is the custom path is just empty
This commit is contained in:
parent
ea51f5f343
commit
4687e547bc
|
|
@ -4492,7 +4492,7 @@ tarteaucitron.services.matomocloud = {
|
||||||
this.setVisitorCookieTimeout(getOriginalVisitorCookieTimeout());
|
this.setVisitorCookieTimeout(getOriginalVisitorCookieTimeout());
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
if (tarteaucitron.user.matomoCustomJSPath === undefined) {
|
if (tarteaucitron.user.matomoCustomJSPath === undefined || tarteaucitron.user.matomoCustomJSPath == '') {
|
||||||
tarteaucitron.addScript('https://cdn.matomo.cloud/matomo.js', '', '', true, 'defer', true);
|
tarteaucitron.addScript('https://cdn.matomo.cloud/matomo.js', '', '', true, 'defer', true);
|
||||||
} else {
|
} else {
|
||||||
tarteaucitron.addScript(tarteaucitron.user.matomoCustomJSPath, '', '', true, 'defer', true);
|
tarteaucitron.addScript(tarteaucitron.user.matomoCustomJSPath, '', '', true, 'defer', true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue