Преглед изворни кода

Fix is the custom path is just empty

Amauri CHAMPEAUX пре 2 година
родитељ
комит
4687e547bc
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tarteaucitron.services.js

+ 1 - 1
tarteaucitron.services.js

@@ -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);