Helper Class to help control when the CoBrowser.net script should be loaded and/or to resume chat on pages that normally dont contain the CoBrowser.net script.
@example:
var _cb = new CobrowserChatApi();
_cb._includeCobrowser(); //loads the script if not already loaded
@example:
var _cb = new CobrowserChatApi();
_cb.startChat('#mychatconfig', function(available){
if (available){
console.log('chat was started');
}
});
See attached file for function documentation.
Comments
0 comments
Please sign in to leave a comment.