Explorar o código

Add widget id to Tawk.to service

Phoennix79 %!s(int64=3) %!d(string=hai) anos
pai
achega
5eff7626cd
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      tarteaucitron.services.js

+ 3 - 1
tarteaucitron.services.js

@@ -4176,10 +4176,12 @@ tarteaucitron.services.tawkto = {
             return;
         }
 
+        tarteaucitron.user.tawktoWidgetId = tarteaucitron.user.tawktoWidgetId || 'default';
+
         window.Tawk_API = window.Tawk_API || {};
         window.Tawk_LoadStart = new Date();
 
-        tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
+        tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/' + tarteaucitron.user.tawktoWidgetId);
     }
 
 };