Skip to content

Commit

Permalink
Clarify use case in doc
Browse files Browse the repository at this point in the history
close #300
  • Loading branch information
nicgirault authored Mar 5, 2019
1 parent a81b8c0 commit 3fdde50
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,20 @@ console.log(`The current browser name is "${browser.getBrowserName()}"`);
or

```javascript
const impression = new Impression();

const browser = Bowser.getParser(window.navigator.userAgent);
const browserInfo = browser.getBrowser();
impression.brName = browserInfo.name;
impression.brVer = browserInfo.version;
console.log(browser.getBrowser());

// outputs
{
name: "Internet Explorer"
version: "11.0"
}
```

or

```javascript
const browser = Bowser.getParser(window.navigator.userAgent);
impression.userTechData = browser.parse();
console.log(impression.userTechData);
console.log(Bowser.parse(window.navigator.userAgent));

// outputs
{
Expand Down

0 comments on commit 3fdde50

Please sign in to comment.