Skip to content

Instantly share code, notes, and snippets.

@sidneycalebe
Created September 27, 2021 13:31
Show Gist options
  • Save sidneycalebe/2dd34694f158c7426bbd64f97e8aa2d0 to your computer and use it in GitHub Desktop.
Save sidneycalebe/2dd34694f158c7426bbd64f97e8aa2d0 to your computer and use it in GitHub Desktop.
var huggyChatLoaded = false
sendMessageInChat = (msg) => huggyChatLoaded === true && Huggy.sendMessage(msg)
var $_Huggy = {
defaultCountry: '+55',
uuid: '9d9b6f1b-0871-4705-a579-aeea63bd73cd',
company: '325836',
afterLoad: () => huggyChatLoaded = true
};
(function (i, s, o, g, r, a, m) {
i[r] = { context: { id: '17bd8390dbbfa9b28b4779a0588aa000' } };
a = o;
o = s.createElement(o);
o.async = 1;
o.src = g; m = s.getElementsByTagName(a)[0];
m.parentNode.insertBefore(o, m);
})
(window, document, 'script', 'https://js.huggy.chat/widget.min.js', 'pwz');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment