Skip to content

Commit

Permalink
Update wasm methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwanders committed Sep 22, 2024
1 parent ad94fb0 commit 9abb2fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions battleground_viewer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,9 @@ mod wasm32 {
use web_sys::{Request, RequestInit, RequestMode, Response};

// Fetch the recording.
let mut opts = RequestInit::new();
opts.method("GET");
opts.mode(RequestMode::Cors);
let opts = RequestInit::new();
opts.set_method("GET");
opts.set_mode(RequestMode::Cors);

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

0 comments on commit 9abb2fd

Please sign in to comment.