You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR updates web-sys & wasm to the newest version.
(this was already part of the POC emilk#4954 )
* Closes <emilk#4961>
* Closes <emilk#4958>
* [x] I have followed the instructions in the PR template
let is_secure_context = window.is_secure_context();
185
-
if is_secure_context {
186
-
log::warn!("window.navigator.clipboard is null; can't copy text");
187
-
}else{
188
-
log::warn!("window.navigator.clipboard is null; can't copy text, probably because we're not in a secure context. See https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts");
174
+
let promise = window.navigator().clipboard().write_text(s);
175
+
let future = wasm_bindgen_futures::JsFuture::from(promise);
0 commit comments