Remove open dependency for tour on Wasm
This commit is contained in:
parent
23cff08e46
commit
0253d9bee0
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -134,6 +134,7 @@ impl Tour {
|
|||
self.toggler = toggler;
|
||||
}
|
||||
Message::OpenTrunk => {
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
let _ = open::that_in_background("https://trunkrs.dev");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue