1.0.3 • Published 3 years ago

@letsnova/vue-jivosite v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago