Skip to content

Latest commit

 

History

History

extension-feedback

Ohbug

An open source application information monitoring platform.

@ohbug/extension-feedback

npm npm bundle size

Ohbug extension to collect user feedback

Installation

pnpm i @ohbug/extension-feedback

Usage

import Ohbug from '@ohbug/browser'
import OhbugExtensionFeedback from '@ohbug/extension-feedback'

const client = Ohbug.setup({ apiKey: 'YOUR_API_KEY' })
client.use(OhbugExtensionFeedback())

Parameters

target?: HTMLElement

You can customize the dom element to which the feedback popup is mounted, by default it will be mounted in the body.

example:

import Ohbug from '@ohbug/browser'
import OhbugExtensionFeedback from '@ohbug/extension-feedback'

const client = Ohbug.setup({ apiKey: 'YOUR_API_KEY' })
client.use(OhbugExtensionFeedback(document.querySelector('#xxx')))