Skip to content

Commit 9abb2fd

Browse files
committed
Update wasm methods.
1 parent ad94fb0 commit 9abb2fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

battleground_viewer/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,9 @@ mod wasm32 {
502502
use web_sys::{Request, RequestInit, RequestMode, Response};
503503

504504
// Fetch the recording.
505-
let mut opts = RequestInit::new();
506-
opts.method("GET");
507-
opts.mode(RequestMode::Cors);
505+
let opts = RequestInit::new();
506+
opts.set_method("GET");
507+
opts.set_mode(RequestMode::Cors);
508508

509509
let location_origin = get_window()?.location().search()?;
510510
let url_params = UrlSearchParams::new_with_str(&location_origin)?;

0 commit comments

Comments
 (0)