Skip to content

Commit

Permalink
don't try to set clipboard when compiling for wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Mar 27, 2023
1 parent cc0c98b commit f7f6fc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/re_viewer/src/ui/viewport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ impl Viewport {
}

// Set to clipboard.
#[cfg(not(target_arch = "wasm32"))]
crate::misc::Clipboard::with(|clipboard| {
clipboard.set_image([screenshot.width as _, screenshot.height as _], &buffer);
});
Expand Down

0 comments on commit f7f6fc6

Please sign in to comment.