We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c45180a commit 5de3f67Copy full SHA for 5de3f67
src/BootstrapBlazor/Services/Serial/DefaultSerialService.cs
@@ -27,8 +27,7 @@ public DefaultSerialService(IJSRuntime jsRuntime)
27
28
private async Task<JSModule> LoadModule()
29
{
30
- var module = await _runtime.LoadModule("./_content/BootstrapBlazor/modules/serial.js")
31
- ?? throw new InvalidOperationException("Load serial module failed");
+ var module = await _runtime.LoadModule("./_content/BootstrapBlazor/modules/serial.js");
32
33
IsSupport = await module.InvokeAsync<bool>("init", _serialPortId);
34
return module;
0 commit comments