Changes necessary for latest cargo packages

This commit is contained in:
2025-02-10 14:57:40 -08:00
parent 58dae5df6f
commit 2073b7b132
2 changed files with 1 additions and 27 deletions

View File

@@ -496,10 +496,7 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
}
Msg::MultiMsg(msgs) => msgs.into_iter().for_each(|msg| update(msg, model, orders)),
Msg::CopyToClipboard(text) => {
let clipboard = seed::window()
.navigator()
.clipboard()
.expect("couldn't get clipboard");
let clipboard = seed::window().navigator().clipboard();
orders.perform_cmd(async move {
wasm_bindgen_futures::JsFuture::from(clipboard.write_text(&text))
.await