bgc/BGC.Client/BGC.Client.Browser/AppBundle/main.js

14 lines
413 B
JavaScript
Raw Normal View History

2024-08-05 03:22:49 +03: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.runMain(config.mainAssemblyName, [window.location.search]);