From 5eff7626cdc4d6b1fe126575d6ed5099f5ac80fb Mon Sep 17 00:00:00 2001 From: Phoennix79 Date: Mon, 29 Nov 2021 23:18:43 +0100 Subject: [PATCH] Add widget id to Tawk.to service --- tarteaucitron.services.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index b70c7e1..52fe474 100644 --- a/tarteaucitron.services.js +++ b/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); } };