Skip to content

Commit

Permalink
Fix main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkatz6 committed May 14, 2023
1 parent 3c38ea5 commit ceafaa1
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { dotnet } from './dotnet.js'
import { registerAvaloniaModule } from './avalonia.js';

const is_browser = typeof window != "undefined";
if (!is_browser) throw new Error(`Expected to be running in a browser`);
Expand All @@ -9,8 +8,6 @@ const dotnetRuntime = await dotnet
.withApplicationArgumentsFromQuery()
.create();

await registerAvaloniaModule(dotnetRuntime);

const config = dotnetRuntime.getConfig();

await dotnetRuntime.runMainAndExit(config.mainAssemblyName, [window.location.search]);

0 comments on commit ceafaa1

Please sign in to comment.