Add some debugging

This commit is contained in:
Jackson Harper 2023-08-10 09:15:52 +08:00
parent c2eb2ad043
commit 1f9beca0d5

View file

@ -1,10 +1,13 @@
;(function () {
var w = window
var ic = w.Intercom
console.log('running the intercom script, checking if we are injected: ', ic)
if (typeof ic === 'function') {
ic('reattach_activator')
ic('update', w.intercomSettings)
} else {
console.log('injecting the intercom widget')
var d = document
var i = function () {
i.c(arguments)