made emojipicker work 10x better, also fixed a few bugs
This commit is contained in:
12
plugins/mitt.ts
Normal file
12
plugins/mitt.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import mitt from 'mitt'
|
||||
|
||||
export default defineNuxtPlugin(() => {
|
||||
const emitter = mitt()
|
||||
|
||||
return {
|
||||
provide: {
|
||||
emit: emitter.emit, // Will emit an event
|
||||
listen: emitter.on // Will register a listener for an event
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user