mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
fix: destructure emit data
This commit is contained in:
@@ -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...)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user