Commit b2470cbc authored by justcoding121's avatar justcoding121 Committed by justcoding121

use lazy runtime check

parent a64e7d5c
...@@ -28,7 +28,7 @@ namespace Titanium.Web.Proxy.Helpers ...@@ -28,7 +28,7 @@ namespace Titanium.Web.Proxy.Helpers
internal static bool IsRunningOnMono => isRunningOnMono.Value; internal static bool IsRunningOnMono => isRunningOnMono.Value;
#if NETSTANDARD2_0 #if NETSTANDARD2_0
internal static bool IsWindows => RuntimeInformation.IsOSPlatform(OSPlatform.Windows); internal static bool IsWindows => isRunningOnWindows.Value;
#else #else
internal static bool IsWindows => true; internal static bool IsWindows => true;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment