Skip to content

Commit

Permalink
style: fixed format
Browse files Browse the repository at this point in the history
  • Loading branch information
lukexor committed Aug 15, 2024
1 parent 8f5cb98 commit d62ea28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tetanes/src/sys/platform/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,7 @@ pub mod renderer {
let copied_text = std::mem::take(&mut output.platform_output.copied_text);
tracing::warn!("Copied text: {copied_text}");
if !copied_text.is_empty() {
if let Some(clipboard) =
web_sys::window().map(|window| window.navigator().clipboard())
if let Some(clipboard) = web_sys::window().map(|window| window.navigator().clipboard())
{
let promise = clipboard.write_text(&copied_text);
let future = JsFuture::from(promise);
Expand Down

0 comments on commit d62ea28

Please sign in to comment.