mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add some debugging
This commit is contained in:
parent
c2eb2ad043
commit
1f9beca0d5
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue