Skip to content

Commit

Permalink
remove unhelpful expects
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Apr 26, 2023
1 parent 2c32ae7 commit 39f34f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_render/src/view/window/screenshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ impl ScreenshotManager {
});
let blob = web_sys::Blob::new_with_u8_array_sequence(&parts)?;
let url = web_sys::Url::create_object_url_with_blob(&blob)?;
let window = web_sys::window().expect("unable to get window");
let document = window.document().expect("unable to get document");
let window = web_sys::window().unwrap();
let document = window.document().unwrap();
let link = document.create_element("a")?;
link.set_attribute("href", &url)?;
link.set_attribute(
Expand Down

0 comments on commit 39f34f6

Please sign in to comment.