emilk / egui

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
https://www.egui.rs/
Apache License 2.0
22.47k stars 1.6k forks source link

Small change to eframe/src/web/mod.rs to support web-sys version 0.3.70 #5071

Closed srgfrog closed 2 months ago

srgfrog commented 2 months ago

Version 0.3.70 of web-sys changed the window.navigator().clipboard() function to return a Clipboard struct instead of an Option\<Clipboard>

Line 188 of eframe/src/web/mod.rs changes from if let Some(clipboard) = window.navigator().clipboard() {

to

let clipboard = window.navigator().clipboard(); ....

emilk commented 2 months ago

It's already fixed on egui master