mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Add warning if window.navigator.clipboard is null
This commit is contained in:
@@ -171,6 +171,8 @@ fn set_clipboard_text(s: &str) {
|
||||
}
|
||||
};
|
||||
wasm_bindgen_futures::spawn_local(future);
|
||||
} else {
|
||||
log::warn!("window.navigator.clipboard is null; can't copy text");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user