Browse Source
Revert incorrect "run" usage in control catalog
pull/16620/head
Max Katz
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
2 deletions
-
samples/ControlCatalog.Browser/wwwroot/main.js
|
|
@ -4,8 +4,9 @@ const is_browser = typeof window != "undefined"; |
|
|
if (!is_browser) throw new Error(`Expected to be running in a browser`); |
|
|
if (!is_browser) throw new Error(`Expected to be running in a browser`); |
|
|
|
|
|
|
|
|
const dotnetRuntime = await dotnet |
|
|
const dotnetRuntime = await dotnet |
|
|
.withDiagnosticTracing(false) |
|
|
|
|
|
.withApplicationArgumentsFromQuery() |
|
|
.withApplicationArgumentsFromQuery() |
|
|
.create(); |
|
|
.create(); |
|
|
|
|
|
|
|
|
await dotnet.run(); |
|
|
const config = dotnetRuntime.getConfig(); |
|
|
|
|
|
|
|
|
|
|
|
await dotnetRuntime.runMain(config.mainAssemblyName, [globalThis.location.href]); |
|
|
|