Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserAgent support? #169

Closed
Jomy10 opened this issue Mar 17, 2022 · 1 comment
Closed

UserAgent support? #169

Jomy10 opened this issue Mar 17, 2022 · 1 comment
Labels
question Further information is requested

Comments

@Jomy10
Copy link

Jomy10 commented Mar 17, 2022

I was wondering if we can run the equivalent of JavaScript's navigator.userAgent? I can't seem to find any references to it.

@Jomy10
Copy link
Author

Jomy10 commented Mar 17, 2022

let window = JSObject.global.window.object!
let navigator = window.navigator.object!
let userAgent = navigator.userAgent.jsValue().string!

seems to do the trick

@Jomy10 Jomy10 closed this as completed Mar 17, 2022
@MaxDesiatov MaxDesiatov added the question Further information is requested label Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants