mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Use 'Platform.IsWindowsDesktop' instead of checking both NanoServer and IoT (#10205)
This commit is contained in:
committed by
Travis Plunk
parent
2ed9abc99b
commit
8f5b2c241e
@@ -23,7 +23,7 @@ namespace Microsoft.PowerShell
|
||||
{
|
||||
// The STA apartment state is not supported on NanoServer and Windows IoT.
|
||||
// Plus, there is not need to create jump list in those environment anyways.
|
||||
if (Platform.IsNanoServer || Platform.IsIoT)
|
||||
if (!Platform.IsWindowsDesktop)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user