Skip to content

Commit ba02b27

Browse files
committed
refactor: 增加 OperationCanceledException 异常忽略
1 parent 3ccfc9d commit ba02b27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/BootstrapBlazor/Extensions/JSModuleExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public static async Task<JSModule> LoadModule(this IJSRuntime jsRuntime, string
4444
throw;
4545
#endif
4646
}
47+
catch (OperationCanceledException) { }
4748
return new JSModule(jSObjectReference);
4849
}
4950

0 commit comments

Comments
 (0)