gamenight/FrontendAvalonia/FrontendAvalonia.Browser/AppBundle/main.js

13 lines
419 B
JavaScript
Raw Permalink Normal View History

2023-08-14 18:16:02 +02:00
import { dotnet } from './dotnet.js'
const is_browser = typeof window != "undefined";
if (!is_browser) throw new Error(`Expected to be running in a browser`);
const dotnetRuntime = await dotnet
.withDiagnosticTracing(false)
.withApplicationArgumentsFromQuery()
.create();
const config = dotnetRuntime.getConfig();
await dotnetRuntime.runMainAndExit(config.mainAssemblyName, [window.location.search]);