Commit bf5d53aa authored by justcoding121's avatar justcoding121

use lazy runtime check

parent 77a1fb46
......@@ -28,7 +28,7 @@ namespace Titanium.Web.Proxy.Helpers
internal static bool IsRunningOnMono => isRunningOnMono.Value;
#if NETSTANDARD2_0
internal static bool IsWindows => RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
internal static bool IsWindows => isRunningOnWindows.Value;
#else
internal static bool IsWindows => true;
#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