feat(plugins): inject API on window.__TAURI__ (#383)

This commit is contained in:
Lucas Fernandes Nogueira authored and GitHub committed 2023-05-23 14:20:14 -03:00
1 parent 3c8577bc9a
commit b131bc8f7c
78 files changed
+754 -337

No files matched your search

+1
View File
@@ -11,6 +11,7 @@ mod commands;
pub fn init<R: Runtime>() -> TauriPlugin<R> {
Builder::new("process")
.js_init_script(include_str!("api-iife.js").to_string())
.invoke_handler(tauri::generate_handler![commands::exit, commands::restart])
.build()
}