Add warning if `window.navigator.clipboard` is null
This commit is contained in:
parent
f50e64632e
commit
814eddd094
|
|
@ -171,6 +171,8 @@ fn set_clipboard_text(s: &str) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
wasm_bindgen_futures::spawn_local(future);
|
wasm_bindgen_futures::spawn_local(future);
|
||||||
|
} else {
|
||||||
|
log::warn!("window.navigator.clipboard is null; can't copy text");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue