mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
chore: Update website-sdk documentation (#1267)
Update the `website-sdk` documentation to reflect the feedback on setUser method from a customer
This commit is contained in:
@@ -66,10 +66,10 @@ window.$chatwoot.toggle();
|
||||
### To set the user in the widget
|
||||
|
||||
```js
|
||||
window.$chatwoot.setUser('identifier_key', {
|
||||
email: 'email@example.com',
|
||||
name: 'name',
|
||||
avatar_url: '',
|
||||
window.$chatwoot.setUser('<unique-identifier-key-of-the-user>', {
|
||||
email: '<email-address-of-the-user@your-domain.com>',
|
||||
name: '<name-of-the-user>',
|
||||
avatar_url: '<avatar-url-of-the-user>',
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user