From 59aa4a5e673feae23a3b19934304740d60d73b6e Mon Sep 17 00:00:00 2001 From: Lukas Bachschwell Date: Tue, 10 Dec 2019 16:49:46 +0100 Subject: [PATCH] fix last change --- src/views/chatbot/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/chatbot/index.vue b/src/views/chatbot/index.vue index f3f0c23..60077aa 100644 --- a/src/views/chatbot/index.vue +++ b/src/views/chatbot/index.vue @@ -12,7 +12,12 @@ export default { return {} }, mounted: () => { - window.botpressWebChat.init({ host: process.env.BOTPRESS_HOST, botId: 'joinbot', enableReset: false, + let host = 'https://joinbot.tk' + if (process.env.NODE_ENV === 'development') { + host = 'http://localhost:3000' + } + + window.botpressWebChat.init({ host: host, botId: 'joinbot', enableReset: false, enableTranscriptDownload: false, hideWidget: true, extraStylesheet: '/assets/modules/channel-web/chat.css',