1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Remove the need for setting web_sys_unstable_apis (#5000)

* No longer required since https://github.com/emilk/egui/pull/4980

And despite some outdated comments, wgpu/WebGPU doesn't need it either
This commit is contained in:
Emil Ernerfeldt
2024-08-26 16:31:38 +02:00
committed by GitHub
parent 47c0aeb7b9
commit a9a6e0c2f2
13 changed files with 3 additions and 49 deletions

View File

@@ -276,14 +276,10 @@ impl AppRunner {
super::open_url(&open.url, open.new_tab);
}
#[cfg(web_sys_unstable_apis)]
if !copied_text.is_empty() {
super::set_clipboard_text(&copied_text);
}
#[cfg(not(web_sys_unstable_apis))]
let _ = copied_text;
if self.has_focus() {
// The eframe app has focus.
if ime.is_some() {