load production stylesheet
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lukas Bachschwell 2019-12-10 17:48:29 +01:00
parent 939f253824
commit f583ded614
1 changed files with 3 additions and 1 deletions

View File

@ -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(() => {