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 ad94fb0 commit 9abb2fdCopy full SHA for 9abb2fd
battleground_viewer/src/lib.rs
@@ -502,9 +502,9 @@ mod wasm32 {
502
use web_sys::{Request, RequestInit, RequestMode, Response};
503
504
// Fetch the recording.
505
- let mut opts = RequestInit::new();
506
- opts.method("GET");
507
- opts.mode(RequestMode::Cors);
+ let opts = RequestInit::new();
+ opts.set_method("GET");
+ opts.set_mode(RequestMode::Cors);
508
509
let location_origin = get_window()?.location().search()?;
510
let url_params = UrlSearchParams::new_with_str(&location_origin)?;
0 commit comments