Update samy.ps1
This commit is contained in:
4
samy.ps1
4
samy.ps1
@@ -1045,7 +1045,7 @@ function Get-RemoteText {
|
|||||||
return $resp.Content
|
return $resp.Content
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-LogHybrid "Get-RemoteText failed for $Url: $($_.Exception.Message)" Warning UI -LogToEvent
|
Write-LogHybrid "Get-RemoteText failed for ${Url}: $($_.Exception.Message)" Warning UI -LogToEvent
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1079,7 +1079,7 @@ function Get-UIHtml {
|
|||||||
$jsContent = Get-RemoteText -Url "https://git.svstools.ca/SVS_Public_Repo/S.A.M.Y/raw/branch/main/samy.js?raw=1"
|
$jsContent = Get-RemoteText -Url "https://git.svstools.ca/SVS_Public_Repo/S.A.M.Y/raw/branch/main/samy.js?raw=1"
|
||||||
|
|
||||||
#
|
#
|
||||||
# 4) HTML template – **no external link/script src** anymore, all inlined
|
# 4) HTML template - **no external link/script src** anymore, all inlined
|
||||||
#
|
#
|
||||||
$htmlTemplate = @"
|
$htmlTemplate = @"
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|||||||
Reference in New Issue
Block a user