Fix incorrect variable names
This commit is contained in:
parent
19f3e35446
commit
67baf43a4d
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ $startLayout = Get-Content "$startLayoutFile" | ConvertFrom-Json;
|
|||
|
||||
$startLayout.pinnedList = $startLayout.pinnedList | Where-Object {
|
||||
return -not (
|
||||
($pinnedItem.desktopAppLink -like "*Microsoft Edge*") -or
|
||||
($_.desktopAppLink -like "*Microsoft Edge*") -or
|
||||
[System.Linq.Enumerable]::Any(
|
||||
@(
|
||||
"*MicrosoftOfficeHub*",
|
||||
|
@ -32,7 +32,7 @@ $startLayout.pinnedList = $startLayout.pinnedList | Where-Object {
|
|||
"*Facebook*"),
|
||||
[System.Func[System.Object,bool]]{
|
||||
param($pattern)
|
||||
return $pinnedItem.packageAppId -like "$pattern";
|
||||
return $_.packageAppId -like "$pattern";
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue