fix: Resolve build errors for mobile long-press (missing deps, type mismatch)

This commit is contained in:
spinline
2026-02-01 15:44:17 +03:00
parent ce29831d40
commit 542cab4249
2 changed files with 9 additions and 4 deletions

View File

@@ -1,4 +1,6 @@
use leptos::*;
use wasm_bindgen::closure::Closure;
use wasm_bindgen::JsCast;
@@ -297,9 +299,8 @@ pub fn TorrentTable() -> impl IntoView {
set_menu_visible.set(true);
// Haptic feedback if available
if let Ok(navigator) = window().navigator() {
let _ = navigator.vibrate_with_duration(50);
}
let navigator = window().navigator();
let _ = navigator.vibrate_with_duration(50);
}) as Box<dyn Fn()>);
let id = window()