Any way to change contents of navigator.userAgent #4351
Answered
by
yildirimcagri-msft
drbsoftware
asked this question in
Q&A
-
navigator.userAgent is read-only. I cannot tell from the documentation on WebViewSettings.UserAgent whether the setting will apply to navigator.userAgent. We have JavaScript loaded from the website which reads navigator.userAgent to determine the device. If this will work, could the documentation be updated to reflect this use case? |
Beta Was this translation helpful? Give feedback.
Answered by
yildirimcagri-msft
Feb 6, 2024
Replies: 1 comment 1 reply
-
@yildirimcagri-msft is navigator.userAgent read-only? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WebView2Settings.UserAgent should also set navigator.userAgent. Let us know if you are seeing a different behavior.