This page was last edited on February 24, 2016, at 00:43.
Comments or questions about this documentation? Contact us for support!
Use this method to modify options before the chat starts or restores. This method may be useful if you do not control the startChat() call but still need to control some of the options. For example, you can use this method when you use chat as part of the Integrated JavaScript Application.
_genesys.chat.onReady.push(function(chat) {
chat.onBeforeChatOptionsApplied(function(options) {
// you can modify options object here, for example:
if (userIsAuthorized) {
options.registration = false;
}
});
});