Skip to content

Instantly share code, notes, and snippets.

@Asim-Tahir
Last active April 20, 2021 18:30
Show Gist options
  • Save Asim-Tahir/36932bc81b4faa18960c41153c9d3db2 to your computer and use it in GitHub Desktop.
Save Asim-Tahir/36932bc81b4faa18960c41153c9d3db2 to your computer and use it in GitHub Desktop.
navigator.userAgent.split(')').reverse()[0].match(/(?!Gecko|Version|[A-Za-z]+?Web[Kk]it)[A-Z][a-z]+\/[\d.]+/g)[0].split('/').toString().replace(',', ': ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment