mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 19:54:07 +03:00
This commit is contained in:
parent
a8a2cb6fb4
commit
6cb601d42e
5
.changes/fix-mobile-cmd-case.md
Normal file
5
.changes/fix-mobile-cmd-case.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"tauri": patch:bug
|
||||||
|
---
|
||||||
|
|
||||||
|
Convert the command name to camelCase when executing a mobile plugin command.
|
@ -1232,7 +1232,7 @@ fn main() {
|
|||||||
if let Err(e) = crate::plugin::mobile::run_command(
|
if let Err(e) = crate::plugin::mobile::run_command(
|
||||||
plugin,
|
plugin,
|
||||||
&app_handle,
|
&app_handle,
|
||||||
message.command,
|
heck::AsLowerCamelCase(message.command).to_string(),
|
||||||
payload,
|
payload,
|
||||||
move |response| match response {
|
move |response| match response {
|
||||||
Ok(r) => resolver_.resolve(r),
|
Ok(r) => resolver_.resolve(r),
|
||||||
|
Loading…
Reference in New Issue
Block a user