@blackwall/vue-jivosite
v1.0.0
Published
Vue plugin for Jivosite live chat
Downloads
6
Readme
jivosite
Vue plugin for Jivosite live chat
Usage
- Install the package
$ npm i @bchteam/vue-jivosite
- Use the plugin
import VueJivosite from '@bchteam/vue-jivosite'
Vue.use(VueJivosite, { widgetId: 'Et2u4i' })
- Handler for success/failed loading can be added:
import VueJivosite from '@bchteam/vue-jivosite'
Vue.use(VueJivosite, {
widgetId: 'Et2u4i',
onInit() {
console.log('Success!')
},
onFail(error) {
console.log('Failed :-(', error)
}
})
If onFail
handler is not provided, failed initialization throws exception (because of unhandled promise rejection).