pull/1939/head
Amr Bashir 6 months ago committed by GitHub
parent 0e5d268f72
commit 2b979f852d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -387,7 +387,15 @@ pub async fn read_file<R: Runtime>(
path: SafeFilePath,
options: Option<BaseOptions>,
) -> CommandResult<tauri::ipc::Response> {
read_file_inner("read-file", webview, 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 +407,15 @@ pub async fn read_text_file<R: Runtime>(
path: SafeFilePath,
options: Option<BaseOptions>,
) -> CommandResult<tauri::ipc::Response> {
read_file_inner("read-text-file", webview, global_scope, command_scope, path, options).await
read_file_inner(
"read-text-file",
webview,
global_scope,
command_scope,
path,
options
)
.await
}
#[tauri::command]

Loading…
Cancel
Save