feat: Add pre_chat_form_settings in inbox settings page (#1776)
This commit is contained in:
@@ -35,10 +35,12 @@ window.chatwootSettings = {
|
||||
|
||||
window.addEventListener('chatwoot:ready', function() {
|
||||
console.log(window.$chatwoot);
|
||||
window.$chatwoot.setUser('<%= user_id %>', {
|
||||
identifier_hash: '<%= user_hash %>',
|
||||
email: 'jane@example.com',
|
||||
name: 'Jane Doe'
|
||||
});
|
||||
if (window.location.search.includes('setUser')) {
|
||||
window.$chatwoot.setUser('<%= user_id %>', {
|
||||
identifier_hash: '<%= user_hash %>',
|
||||
email: 'jane@example.com',
|
||||
name: 'Jane Doe'
|
||||
});
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user