Update samy.ps1
This commit is contained in:
5
samy.ps1
5
samy.ps1
@@ -782,9 +782,6 @@ if (-not $Global:SamyTasks) {
|
|||||||
throw "SAMY cannot continue: failed to load tasks from $Script:SamyTasksUrl"
|
throw "SAMY cannot continue: failed to load tasks from $Script:SamyTasksUrl"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-LogHybrid "Tooltip type check running. Tasks loaded: $($Global:SamyTasks.Count)" Info UI -LogToEvent
|
|
||||||
|
|
||||||
|
|
||||||
# DEBUG: detect any Tooltip that is an array/list (will cause "mega-tooltips")
|
# DEBUG: detect any Tooltip that is an array/list (will cause "mega-tooltips")
|
||||||
$Global:SamyTasks | ForEach-Object {
|
$Global:SamyTasks | ForEach-Object {
|
||||||
if ($_.PSObject.Properties.Name -contains 'Tooltip' -and
|
if ($_.PSObject.Properties.Name -contains 'Tooltip' -and
|
||||||
@@ -794,7 +791,6 @@ $Global:SamyTasks | ForEach-Object {
|
|||||||
Write-LogHybrid "BAD TOOLTIP TYPE: Id=$($_.Id) Type=$($_.Tooltip.GetType().FullName) ValueCount=$(@($_.Tooltip).Count)" Warning UI -LogToEvent
|
Write-LogHybrid "BAD TOOLTIP TYPE: Id=$($_.Id) Type=$($_.Tooltip.GetType().FullName) ValueCount=$(@($_.Tooltip).Count)" Warning UI -LogToEvent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Write-LogHybrid "Dumping tooltip lengths (to spot mega-tooltips)..." Info UI -LogToEvent
|
|
||||||
|
|
||||||
$Global:SamyTasks | ForEach-Object {
|
$Global:SamyTasks | ForEach-Object {
|
||||||
$tip = if ($_.PSObject.Properties.Name -contains 'Tooltip') { [string]$_.Tooltip } else { "" }
|
$tip = if ($_.PSObject.Properties.Name -contains 'Tooltip') { [string]$_.Tooltip } else { "" }
|
||||||
@@ -1209,7 +1205,6 @@ function Send-JSON {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endregion HTTP responder helpers
|
#endregion HTTP responder helpers
|
||||||
|
|
||||||
function Invoke-TasksCompleted {
|
function Invoke-TasksCompleted {
|
||||||
|
|||||||
Reference in New Issue
Block a user