Skip to content

Commit

Permalink
fix: chatwoot-vue default
Browse files Browse the repository at this point in the history
  • Loading branch information
productdevbook committed Oct 15, 2022
1 parent c6c2c42 commit 4b4eef8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/chatwoot-vue/src/plugin.ts
Expand Up @@ -185,16 +185,15 @@ export const createChatWoot = (options: OptionPlugin) => {
init: { baseUrl: 'https://app.chatwoot.com' },
} as OptionPlugin)

const chatwootSettings: ChatwootSettings = {
const chatwootSettings: ChatwootSettings = defu(chatwoot.settings, {
showPopoutButton: false,
darkMode: 'auto',
hideMessageBubble: false,
position: 'right',
locale: 'en',
launcherTitle: 'Chat with us',
type: 'expanded_bubble',
...chatwoot.settings,
}
} as ChatwootSettings)

chatwoot.settings = chatwootSettings
app.config.globalProperties.$chatwoot = chatwoot
Expand Down

0 comments on commit 4b4eef8

Please sign in to comment.