добавил виджет ТП

This commit is contained in:
developer 2026-05-06 14:25:26 +08:00
parent a9bb1cd9ca
commit 18d404b482

View File

@ -166,7 +166,13 @@
var h = d.getElementsByTagName('script')[0];
h.parentNode.insertBefore(s, h);
})(window, document, 'https://bx.zachem.info/upload/crm/site_button/loader_1_wnj4gb.js');
window.addEventListener('onBitrixLiveChat', function(event) {
var widget = event.detail.widget;
widget.setCustomData("[b]{{ auth()->user()->name }}[/b] ({{ auth()->user()->email }})");
});
</script>
</body>
</html>