Add widget id to Tawk.to service

This commit is contained in:
Phoennix79 2021-11-29 23:18:43 +01:00
parent 346a251cf0
commit 5eff7626cd
1 changed files with 3 additions and 1 deletions

View File

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