-
Notifications
You must be signed in to change notification settings - Fork 504
Closed
Description
I tried to install the HTTP plugin like explained in the README, and i got the error Command fetch not found when calling the method from JS.
I have the following code:
fn main() {
tauri::Builder::default()
// ...
// HTTP plugin
.plugin(tauri_plugin_http::init())
.run(tauri::generate_context!())
.expect("error while running tauri application");
}import { fetch } from "@tauri-apps/plugin-http";
// Check if the url is reachable
const response = await fetch(value, {
method: "GET",
connectTimeout: 1000,
});Is this normal ? Or did I miss something while configuring the plugin ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels