Skip to content

Commit

Permalink
Remove toAbsoluteUrl from test code
Browse files Browse the repository at this point in the history
  • Loading branch information
yamachu committed Jun 28, 2022
1 parent c339a1a commit 527ad98
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/mono/wasm/test-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,15 +344,6 @@ if (typeof globalThis.crypto === 'undefined') {
}
}

let toAbsoluteUrl;
if (is_browser) {
const anchorTagForAbsoluteUrlConversions = document.createElement('a');
toAbsoluteUrl = function toAbsoluteUrl(path, prefix) {
anchorTagForAbsoluteUrlConversions.href = prefix + path;
return anchorTagForAbsoluteUrlConversions.href;
}
}

Promise.all([argsPromise, loadDotnetPromise]).then(async ([_, createDotnetRuntime]) => {
applyArguments();

Expand Down Expand Up @@ -391,7 +382,6 @@ Promise.all([argsPromise, loadDotnetPromise]).then(async ([_, createDotnetRuntim
disableDotnet6Compatibility: true,
config: null,
configSrc: "./mono-config.json",
locateFile: toAbsoluteUrl,
onConfigLoaded: (config) => {
if (!Module.config) {
const err = new Error("Could not find ./mono-config.json. Cancelling run");
Expand Down

0 comments on commit 527ad98

Please sign in to comment.