load production stylesheet
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
939f253824
commit
f583ded614
@ -13,14 +13,16 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted: () => {
|
mounted: () => {
|
||||||
let host = 'https://joinbot.tk/bot'
|
let host = 'https://joinbot.tk/bot'
|
||||||
|
let stylesheetdir = '/bot/assets/modules/channel-web/chat.css'
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
host = 'http://localhost:3000'
|
host = 'http://localhost:3000'
|
||||||
|
stylesheetdir = '/assets/modules/channel-web/chat.css'
|
||||||
}
|
}
|
||||||
|
|
||||||
window.botpressWebChat.init({ host: host, botId: 'joinbot', enableReset: false,
|
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: stylesheetdir,
|
||||||
botName: 'Joe'
|
botName: 'Joe'
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user