Skip to content

Instantly share code, notes, and snippets.

@shibulijack-fd
Created May 15, 2017 14:30
Show Gist options
  • Save shibulijack-fd/805bae3171f180ca44ca2a25079f29a8 to your computer and use it in GitHub Desktop.
Save shibulijack-fd/805bae3171f180ca44ca2a25079f29a8 to your computer and use it in GitHub Desktop.
Hotline Async Embed code
function callHotlineAsync(e,n){var t=document,a="script",c=t.createElement(a),l=t.getElementsByTagName(a)[0];c.src="//"+e,n&&c.addEventListener("load",function(e){n(null,e)},!1),l.parentNode.insertBefore(c,l)}
callHotlineAsync('//chat2.hotline.io/js/widget.js', function() {
window.HotlineWidget.init({
token: "TOKEN_HERE",
host: "https://chat2.hotline.io"
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment