mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Prevent panic when copying text outside of a secure context (#5326)
* Closes <https://github.com/emilk/egui/issues/5293> * [x] I have followed the instructions in the PR template
This commit is contained in:
@@ -1439,6 +1439,10 @@ impl Context {
|
||||
///
|
||||
/// Empty strings are ignored.
|
||||
///
|
||||
/// Note that in wasm applications, the clipboard is only accessible in secure contexts (e.g.,
|
||||
/// HTTPS or localhost). If this method is used outside of a secure context, it will log an
|
||||
/// error and do nothing. See <https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts>.
|
||||
///
|
||||
/// Equivalent to:
|
||||
/// ```
|
||||
/// # let ctx = egui::Context::default();
|
||||
|
||||
Reference in New Issue
Block a user