diff --git a/packages/chatwoot-vue/src/plugin.ts b/packages/chatwoot-vue/src/plugin.ts index 2c628794..7510ee44 100644 --- a/packages/chatwoot-vue/src/plugin.ts +++ b/packages/chatwoot-vue/src/plugin.ts @@ -185,7 +185,7 @@ 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, @@ -193,8 +193,7 @@ export const createChatWoot = (options: OptionPlugin) => { locale: 'en', launcherTitle: 'Chat with us', type: 'expanded_bubble', - ...chatwoot.settings, - } + } as ChatwootSettings) chatwoot.settings = chatwootSettings app.config.globalProperties.$chatwoot = chatwoot