fix last change
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lukas Bachschwell 2019-12-10 16:49:46 +01:00
parent f4f56cb11e
commit 59aa4a5e67

View File

@ -12,7 +12,12 @@ export default {
return {} return {}
}, },
mounted: () => { 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, enableTranscriptDownload: false,
hideWidget: true, hideWidget: true,
extraStylesheet: '/assets/modules/channel-web/chat.css', extraStylesheet: '/assets/modules/channel-web/chat.css',