We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9445d9a commit 94aa995Copy full SHA for 94aa995
crates/bevy_render/src/view/window/screenshot.rs
@@ -93,8 +93,8 @@ impl ScreenshotManager {
93
});
94
let blob = web_sys::Blob::new_with_u8_array_sequence(&parts)?;
95
let url = web_sys::Url::create_object_url_with_blob(&blob)?;
96
- let window = web_sys::window().expect("unable to get window");
97
- let document = window.document().expect("unable to get document");
+ let window = web_sys::window().unwrap();
+ let document = window.document().unwrap();
98
let link = document.create_element("a")?;
99
link.set_attribute("href", &url)?;
100
link.set_attribute(
0 commit comments