mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-08-07 18:28:39 +02:00
feat(plugins): inject API on window.__TAURI__ (#383)
This commit is contained in:
@@ -389,6 +389,7 @@ impl Builder {
|
||||
|
||||
pub fn build<R: Runtime>(mut self) -> TauriPlugin<R> {
|
||||
plugin::Builder::new("log")
|
||||
.js_init_script(include_str!("api-iife.js").to_string())
|
||||
.invoke_handler(tauri::generate_handler![log])
|
||||
.setup(move |app_handle, _api| {
|
||||
let app_name = &app_handle.package_info().name;
|
||||
|
||||
Reference in New Issue
Block a user