diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 4af1caa2bd52c2..0b0a75f1063aca 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -57,6 +57,7 @@ + @@ -370,12 +371,6 @@ - - - - - - @@ -385,6 +380,13 @@ + + + + + + + diff --git a/src/mono/wasm/runtime/loader/worker.ts b/src/mono/wasm/runtime/loader/worker.ts index a22c65fcb78813..01b5d23c92264d 100644 --- a/src/mono/wasm/runtime/loader/worker.ts +++ b/src/mono/wasm/runtime/loader/worker.ts @@ -39,7 +39,7 @@ function onMonoConfigReceived(config: MonoConfigInternal): void { loaderHelpers.afterConfigLoaded.promise_control.resolve(loaderHelpers.config); if (ENVIRONMENT_IS_WEB && config.forwardConsoleLogsToWS && typeof globalThis.WebSocket != "undefined") { - loaderHelpers.setup_proxy_console("pthread-worker", console, self.location.href); + loaderHelpers.setup_proxy_console("pthread-worker", console, globalThis.location.origin); } }