Remove open dependency for tour on Wasm

This commit is contained in:
Héctor Ramón Jiménez 2025-03-11 02:51:05 +01:00
parent 23cff08e46
commit 0253d9bee0
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 2 additions and 2 deletions

View file

@ -9,10 +9,9 @@ publish = false
iced.workspace = true
iced.features = ["image", "debug"]
open = "5"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tracing-subscriber = "0.3"
open = "5"
[target.'cfg(target_arch = "wasm32")'.dependencies]
iced.workspace = true

View file

@ -134,6 +134,7 @@ impl Tour {
self.toggler = toggler;
}
Message::OpenTrunk => {
#[cfg(not(target_arch = "wasm32"))]
let _ = open::that_in_background("https://trunkrs.dev");
}
}