Fix blazor detection
MODIFY
src/BlazorSample/Program.cs
src/BlazorSample/Program.cs
@@ -18,6 +18,7 @@ public class Program
#endregion
builder.RootComponents.Add<App>("app");
#endregion
+
serviceCollection.AddTransient(
provider => new HttpClient
{

MODIFY
src/TextCopy/ClipboardService.cs
src/TextCopy/ClipboardService.cs
@@ -35,7 +35,7 @@ namespace TextCopy
static ClipboardService()
{
#if NETSTANDARD2_1
- if (RuntimeInformation.IsOSPlatform(OSPlatform.Create("WEBASSEMBLY")))
+ if (RuntimeInformation.OSDescription == "web")
{
throw new Exception($"The static class ClipboardService is not supported on Blazor. Instead inject an {nameof(IClipboard)} using {nameof(ServiceExtensions)}{nameof(ServiceExtensions.InjectClipboard)}.");
}

Fix blazor detection (#203)