Skip to content

Commit

Permalink
Merge pull request #301 from nicgirault/patch-1
Browse files Browse the repository at this point in the history
Clarify use case in doc
  • Loading branch information
lancedikson authored Mar 6, 2019
2 parents 383c627 + 3fdde50 commit 5873e24
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 5873e24

Please sign in to comment.