mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 13:37:09 +00:00
This commit is contained in:
parent
eb61d44f9f
commit
fbb45c674c
5
.changes/fix-register-listener.md
Normal file
5
.changes/fix-register-listener.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@tauri-apps/api": patch:bug
|
||||
---
|
||||
|
||||
Fixes `addPluginListener` not working.
|
||||
File diff suppressed because one or more lines are too long
@ -118,7 +118,7 @@ async function addPluginListener<T>(
|
||||
): Promise<PluginListener> {
|
||||
const handler = new Channel<T>()
|
||||
handler.onmessage = cb
|
||||
return invoke(`plugin:${plugin}|register_listener`, { event, handler }).then(
|
||||
return invoke(`plugin:${plugin}|registerListener`, { event, handler }).then(
|
||||
() => new PluginListener(plugin, event, handler.id)
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user