Skip to content

Commit

Permalink
♻ refactor(App): remove the unnecessary try-catch (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem authored Oct 11, 2022
1 parent c681eb1 commit ec9dd0c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/Masa.Blazor/Components/App/MApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,8 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
try
{
await MasaBlazor.Breakpoint.InitAsync();
await Window.InitializeAsync();
}
catch
{
// ignored
}
await MasaBlazor.Breakpoint.InitAsync();
await Window.InitializeAsync();

StateHasChanged();
}
Expand Down

0 comments on commit ec9dd0c

Please sign in to comment.