Closed
Description
Description of Issue
Reference forum post #11799 - When attempting to run Invoke-UDJavascript
without user interaction to return a value (such as using window.localStorage.theme
to retrieve the current user's dark/light mode selection) returns null
instead of the value expected. The output is correct when ran with user interaction, such as the following:
New-UDApp -Content {
New-UDButton -Text "h" -OnClick {
Show-UDToast -Duration 10000 (Invoke-UDJavascript -Javascript "window.localStorage.theme")
}
}
Version
5.0.15
Severity
Low
Hosting Method
IIS
Operating System
Windows
Database
SQLite
Licensed
Yes
Features
git push only
Additional Environment data
azure app proxy
Screenshots/Animations
No response