Skip to content

Commit 6cb601d

Browse files
authored
fix(core): convert mobile command name to camelCase, closes #8872 (#8983)
1 parent a8a2cb6 commit 6cb601d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changes/fix-mobile-cmd-case.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch:bug
3+
---
4+
5+
Convert the command name to camelCase when executing a mobile plugin command.

core/tauri/src/webview/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ fn main() {
12321232
if let Err(e) = crate::plugin::mobile::run_command(
12331233
plugin,
12341234
&app_handle,
1235-
message.command,
1235+
heck::AsLowerCamelCase(message.command).to_string(),
12361236
payload,
12371237
move |response| match response {
12381238
Ok(r) => resolver_.resolve(r),

0 commit comments

Comments
 (0)