Revert "web: fix breakage do to update in dependency"

This reverts commit 80d23204feb31af9a84bc236049e008d832cf49a.
This commit is contained in:
Bill Thiede 2024-12-19 11:34:33 -08:00
parent 95a0279c68
commit 6fa8d1856a

View File

@ -505,7 +505,10 @@ 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();
let clipboard = seed::window()
.navigator()
.clipboard()
.expect("couldn't get clipboard");
orders.perform_cmd(async move {
wasm_bindgen_futures::JsFuture::from(clipboard.write_text(&text))
.await