diff --git a/src/web_clipboard.rs b/src/web_clipboard.rs index c335e874e..34bef83ed 100644 --- a/src/web_clipboard.rs +++ b/src/web_clipboard.rs @@ -229,11 +229,7 @@ fn clipboard_copy(contents: String) { return; }; - let nav = window.navigator(); - let Some(clipboard) = nav.clipboard() else { - log::warn!("Failed to access clipboard"); - return; - }; + let clipboard = window.navigator().clipboard(); let promise = clipboard.write_text(&contents); if let Err(err) = wasm_bindgen_futures::JsFuture::from(promise).await {