chipbot-wrapper
A lightweight wrapper for chipbot.
Usage
-
Install package.
npm i chipbot-wrapper
-
Add it to your project.
import { defineChipbot } from 'chipbot-wrapper' const chipbot = defineChipbot({ id: 'my-chipbot-id', domainId: 'my-chipbot-domain-id', onload() { this.hide() // Or chipbot.hide() } })
-
Usage in other files
Important:
chipbot has to be defined first (Follow step #2)import { chipbot } from 'chipbot-wrapper' chipbot.hide()
-
Profit
🎉