Skip to content

Commit

Permalink
add: github page assets specifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Sufhal committed Sep 10, 2024
1 parent f65cb95 commit e556659
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
40 changes: 20 additions & 20 deletions pkg/m2rs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2543,44 +2543,44 @@ function __wbg_get_imports() {
const ret = makeMutClosure(arg0, arg1, 4, __wbg_adapter_32);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2487 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 669, __wbg_adapter_49);
imports.wbg.__wbindgen_closure_wrapper2488 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 667, __wbg_adapter_49);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2489 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 669, __wbg_adapter_49);
imports.wbg.__wbindgen_closure_wrapper2490 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 667, __wbg_adapter_49);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2491 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 669, __wbg_adapter_54);
imports.wbg.__wbindgen_closure_wrapper2492 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 667, __wbg_adapter_54);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2493 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 669, __wbg_adapter_49);
imports.wbg.__wbindgen_closure_wrapper2494 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 667, __wbg_adapter_49);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2495 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 669, __wbg_adapter_49);
imports.wbg.__wbindgen_closure_wrapper2496 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 667, __wbg_adapter_49);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2497 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 669, __wbg_adapter_49);
imports.wbg.__wbindgen_closure_wrapper2498 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 667, __wbg_adapter_49);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2499 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 669, __wbg_adapter_49);
imports.wbg.__wbindgen_closure_wrapper2500 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 667, __wbg_adapter_49);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper3036 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 923, __wbg_adapter_65);
imports.wbg.__wbindgen_closure_wrapper3037 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 921, __wbg_adapter_65);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper3038 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 923, __wbg_adapter_65);
imports.wbg.__wbindgen_closure_wrapper3039 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 921, __wbg_adapter_65);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper4824 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 1788, __wbg_adapter_70);
imports.wbg.__wbindgen_closure_wrapper4825 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 1786, __wbg_adapter_70);
return addHeapObject(ret);
};

Expand Down
Binary file modified pkg/m2rs_bg.wasm
Binary file not shown.
3 changes: 3 additions & 0 deletions src/modules/assets/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ 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/" {
origin = format!("{}/m2rs", origin);
}
if !origin.ends_with("assets") {
origin = format!("{}/assets", origin);
}
Expand Down

0 comments on commit e556659

Please sign in to comment.