diff --git a/plugins/fs/src/commands.rs b/plugins/fs/src/commands.rs index 185e925f..c291e89e 100644 --- a/plugins/fs/src/commands.rs +++ b/plugins/fs/src/commands.rs @@ -387,7 +387,7 @@ pub async fn read_file( path: SafeFilePath, options: Option, ) -> CommandResult { - read_file_inner("read-file", global_scope, command_scope, path, options).await + read_file_inner("read-file", webview, global_scope, command_scope, path, options).await } // TODO, remove in v3, rely on `read_file` command instead @@ -399,7 +399,7 @@ pub async fn read_text_file( path: SafeFilePath, options: Option, ) -> CommandResult { - read_file_inner("read-text-file", global_scope, command_scope, path, options).await + read_file_inner("read-text-file", webview, global_scope, command_scope, path, options).await } #[tauri::command]