mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
fix(bridge): fixed long message emit issue #469
This commit is contained in:
committed by
Lea Anthony
parent
b123156331
commit
ac0d4493d3
@@ -157,7 +157,7 @@ func (h *Bridge) NotifyEvent(event *messages.EventData) error {
|
||||
}
|
||||
}
|
||||
|
||||
message := fmt.Sprintf("window.wails._.Notify('%s','%s')", event.Name, data)
|
||||
message := "window.wails._.Notify('" + event.Name + "','" + string(data) + "')"
|
||||
dead := []*session{}
|
||||
for _, session := range h.sessions {
|
||||
err := session.evalJS(message, notifyMessage)
|
||||
|
||||
Reference in New Issue
Block a user