CC-5818: Fix Live Chat on Airtime Pro (2.5.3)

This commit is contained in:
Albert Santoni 2014-04-28 11:23:59 -04:00
parent b4a9882e9c
commit 325310f681
1 changed files with 18 additions and 0 deletions

View File

@ -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();
});