-
-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Hello,
I've added the -FavIcon parameter to New-HTML to allow for favicons for the dashboards.
$Table = Get-Process | Select-Object -First 5
New-HTML -TitleText "Test-Dashboard" -FavIcon "$PSScriptRoot\138544-interaction-assets\png\file-2.png" -FilePath "$PSScriptRoot\Test-Dashboard.html" {
New-HTMLTable -DataTable $Table
}
Is there any type of validation I should add aside from an if statement with a Test-Path?
if(Test-Path -Path $FavIcon){
New-HTMLTag -Tag 'link' -Attributes @{rel = 'icon'; href = "$FavIcon"; type = 'image/x-icon'}
}
I was thinking of doing the Test-Path with -Filter for allowed favicon formats.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request

