Fix is the custom path is just empty

This commit is contained in:
Amauri CHAMPEAUX 2022-11-02 09:04:50 +01:00
parent ea51f5f343
commit 4687e547bc
1 changed files with 1 additions and 1 deletions

View File

@ -4492,7 +4492,7 @@ tarteaucitron.services.matomocloud = {
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);
} else {
tarteaucitron.addScript(tarteaucitron.user.matomoCustomJSPath, '', '', true, 'defer', true);