Kustomer.close()

Minimizes the chat widget.

πŸ‘

First, initialize chat fully

Kustomer Chat must finish initializing fully with Kustomer.start() before you can execute any additional Web SDK methods.

Tip: Call other methods inside the callback of Kustomer.start() to ensure Kustomer Chat always completes initialization before the code tries to run other methods.

To learn more, see Troubleshooting: Kustomer method calls won't execute.

Examples

We're provided some examples of how you can call Kustomer.close():

// Close the chat widget
Kustomer.close();


//Close the chat widget and run a callback after the widget closes
Kustomer.close(function () {
  console.log('Kustomer Chat Widget closed!');
});

Did this page help you?