11 lines
285 B
Rust
11 lines
285 B
Rust
pub fn init<R: tauri::Runtime>() -> tauri::plugin::TauriPlugin<R> {
|
|
tauri::plugin::Builder::new("telemetry")
|
|
.invoke_handler(tauri::generate_handler![notify_online,])
|
|
.build()
|
|
}
|
|
|
|
#[tauri::command]
|
|
pub fn notify_online() {
|
|
theseus::telemetry::notify_online();
|
|
}
|