Skip to content

Instantly share code, notes, and snippets.

@pushandplay
Created November 14, 2014 23:52
Show Gist options
  • Save pushandplay/41c239926074f542e5a2 to your computer and use it in GitHub Desktop.
Save pushandplay/41c239926074f542e5a2 to your computer and use it in GitHub Desktop.
Extract iOS Version
(navigator.userAgent).match(/OS\s+([\d\_]+)/i)[0].replace(/_/g, '.').replace('OS ', '')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment