mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 12:19:38 +08:00
fix: destructure emit data
This commit is contained in:
parent
2d5825d73d
commit
0373bea4e5
@ -18,5 +18,5 @@ func (r *RuntimeEvents) On(eventName string, callback func(optionalData ...inter
|
|||||||
|
|
||||||
// Emit pass through
|
// Emit pass through
|
||||||
func (r *RuntimeEvents) Emit(eventName string, optionalData ...interface{}) {
|
func (r *RuntimeEvents) Emit(eventName string, optionalData ...interface{}) {
|
||||||
r.eventManager.Emit(eventName, optionalData)
|
r.eventManager.Emit(eventName, optionalData...)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user