Skip to content

Commit

Permalink
edit: wasm assets fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
Sufhal committed Sep 10, 2024
1 parent e556659 commit b3e1056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/assets/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fn format_url(file_name: &str) -> reqwest::Url {
let window = web_sys::window().unwrap();
let location = window.location();
let mut origin = location.origin().unwrap();
if origin == "https://sufhal.github.io/" {
if origin.starts_with("https://sufhal.github.io") {
origin = format!("{}/m2rs", origin);
}
if !origin.ends_with("assets") {
Expand Down

0 comments on commit b3e1056

Please sign in to comment.