Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed May 3, 2014
1 parent 80f0633 commit 19e671e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,14 @@ Check if the user is a robot.

Agent::isRobot();

### Browser version
### Browser/platform version

MobileDetect recently added a `version` method that can get the version number for components. To get the browser version you can use:
MobileDetect recently added a `version` method that can get the version number for components. To get the browser or platform version you can use:

$browser = Agent::browser();
$version = Agent::version($browser);

$platform = Agent::platform();
$version = Agent::version($platform);

*Note, the version method is still in beta, so it might not return the correct result.*

0 comments on commit 19e671e

Please sign in to comment.