1.0.0 • Published 2 years ago

@blackwall/vue-jivosite v1.0.0

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
2 years ago

jivosite

Vue plugin for Jivosite live chat

Usage

  1. Install the package
$ npm i @bchteam/vue-jivosite
  1. Use the plugin
import VueJivosite from '@bchteam/vue-jivosite'

Vue.use(VueJivosite, { widgetId: 'Et2u4i' })
  1. 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).

1.0.0

2 years ago