mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
11 lines
295 B
C#
11 lines
295 B
C#
using System.Runtime.InteropServices;
|
|
using Microsoft.JSInterop;
|
|
|
|
namespace AntDesign.Core.Extensions
|
|
{
|
|
public static class JSRuntimeExtensions
|
|
{
|
|
public static bool IsBrowser(this IJSRuntime jsRuntime) => RuntimeInformation.IsOSPlatform(OSPlatform.Create("BROWSER"));
|
|
}
|
|
}
|