Skip to content

Commit

Permalink
Add note about secure contexts to the copy_text method
Browse files Browse the repository at this point in the history
  • Loading branch information
YgorSouza committed Oct 30, 2024
1 parent 21d961a commit 8ed52a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/egui/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8ed52a1

Please sign in to comment.