From f583ded6143efea896df8464386635c1e42f04a9 Mon Sep 17 00:00:00 2001 From: Lukas Bachschwell Date: Tue, 10 Dec 2019 17:48:29 +0100 Subject: [PATCH] load production stylesheet --- src/views/chatbot/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/chatbot/index.vue b/src/views/chatbot/index.vue index 797f2bc..47a70aa 100644 --- a/src/views/chatbot/index.vue +++ b/src/views/chatbot/index.vue @@ -13,14 +13,16 @@ export default { }, mounted: () => { let host = 'https://joinbot.tk/bot' + let stylesheetdir = '/bot/assets/modules/channel-web/chat.css' if (process.env.NODE_ENV === 'development') { host = 'http://localhost:3000' + stylesheetdir = '/assets/modules/channel-web/chat.css' } window.botpressWebChat.init({ host: host, botId: 'joinbot', enableReset: false, enableTranscriptDownload: false, hideWidget: true, - extraStylesheet: '/assets/modules/channel-web/chat.css', + extraStylesheet: stylesheetdir, botName: 'Joe' }) setTimeout(() => {