Running this code on my iMac + Chrome gives the output “macOS”
When running it on my Android + Chrome, or iPhone + Safari, I get the error
"AttributeError: 'Navigator' object has no attribute 'userAgentData'
Running this code on my iMac + Chrome gives the output “macOS”
When running it on my Android + Chrome, or iPhone + Safari, I get the error
"AttributeError: 'Navigator' object has no attribute 'userAgentData'