-
Notifications
You must be signed in to change notification settings - Fork 632
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
View previous logins says Windows 10 although I am using Windows 11 #6899
Comments
The chances are we just need to update the browser detect js file/function, will look into it |
Sorry hehe |
Will try when I get into work, I use mac mainly do the useragent is ALWAYS wrong because Apple haven't updated it since the release of osx 11 |
by default the user-agent for my windows 11 edge browser still shows windows 10 we are using ua-parser-js npm package (v1.0.39) HOWEVER if we upgrade to their latest and greatest version (v2+) and enable what they call we can get extra information and get the correct OS/Browser! visit https://uaparser.dev on a browser and click demo to see your agent detected correctly because of the BUT plop in the browser agent manually, and it goes back to detecting windows 10 now the problem we have is ua-parser-js changed its license from MIT to AGPL for v2 and from asking ChatGPT/Deepseek, if this was OK as our project uses Apache Licence 2.0 and is opensource, they are BOTH very certain this will cause problems with our project and Licences so im not too sure what to do? do we just upgrade to v2+ and say fuck it! or do i ask a lawyer for advise? |
Ok, I've found a workaround curtsey of ua-parser-js! And tested and seems to work! |
Signed-off-by: si458 <[email protected]>
All Done! this works for chrome + edge anyways on mac/windows from my testing it doesnt work/isnt supported for firefox but still one step closer! also weirdly enough Windows 11 using edge/chrome is actually detected as version 19 for some weird reason? FYI ua-parser-js actually do this too sample outputs we get from browsers now that support the extra headers!
|
Describe the bug
If you go to View previous logins under My Account in MeshCentral, the last logins are displayed correctly.
However, the operating system is Windows 10 instead of Windows 11.
The text was updated successfully, but these errors were encountered: