CC-5818: Fix Live Chat on Airtime Pro (2.5.3)
This commit is contained in:
parent
b4a9882e9c
commit
325310f681
|
@ -0,0 +1,18 @@
|
||||||
|
var __lc = {};
|
||||||
|
__lc.license = 1083735;
|
||||||
|
|
||||||
|
function setupLiveChat() {
|
||||||
|
// this is where we pass custom variables to livechat;
|
||||||
|
// only pass the client id assigned by WHMCS for now
|
||||||
|
__lc.params = [
|
||||||
|
{ name: 'client_id', value: livechat_client_id }
|
||||||
|
];
|
||||||
|
|
||||||
|
var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
|
||||||
|
lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';
|
||||||
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
setupLiveChat();
|
||||||
|
});
|
Loading…
Reference in New Issue