log click opens from tauri otherwise i have zero visibiltiy (#2291)

log opens

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-05-02 17:26:37 -07:00
committed by GitHub
parent 723cf4f746
commit 5a478fe0b3

View File

@ -488,6 +488,9 @@ fn main() -> Result<()> {
|app, event| {
#[cfg(any(target_os = "macos", target_os = "ios"))]
if let tauri::RunEvent::Opened { urls } = event {
if let Some(w) = app.get_webview_window("main") {
let _ = w.eval(&format!("console.log(`[tauri] Opened URLs: {:?}`)", urls));
}
println!("Opened URLs: {:?}", urls);
// Handle the first URL.