Skip to content

Commit

Permalink
fix compile again
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Dec 9, 2024
1 parent 1995bb4 commit 0e5d268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/fs/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ pub async fn read_file<R: Runtime>(
path: SafeFilePath,
options: Option<BaseOptions>,
) -> CommandResult<tauri::ipc::Response> {
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
Expand All @@ -399,7 +399,7 @@ pub async fn read_text_file<R: Runtime>(
path: SafeFilePath,
options: Option<BaseOptions>,
) -> CommandResult<tauri::ipc::Response> {
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]
Expand Down

0 comments on commit 0e5d268

Please sign in to comment.