From 3bf299dfedfe4a470d49f409c4fad41a3a5221d4 Mon Sep 17 00:00:00 2001 From: JBallin Date: Mon, 21 Jan 2019 10:53:43 -0800 Subject: [PATCH] Capitalize imported Bowser object --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a9db3c74..2a5df769 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ## Bowser A browser detector. Because sometimes, there is no other way, and not even good modern browsers always provide good feature detection mechanisms. -[![Build Status](https://travis-ci.org/lancedikson/bowser.svg?branch=master)](https://travis-ci.org/lancedikson/bowser/) [![Greenkeeper badge](https://badges.greenkeeper.io/lancedikson/bowser.svg)](https://greenkeeper.io/)[![Coverage Status](https://coveralls.io/repos/github/lancedikson/bowser/badge.svg?branch=master)](https://coveralls.io/github/lancedikson/bowser?branch=master) +[![Build Status](https://travis-ci.org/lancedikson/Bowser.svg?branch=master)](https://travis-ci.org/lancedikson/bowser/) [![Greenkeeper badge](https://badges.greenkeeper.io/lancedikson/Bowser.svg)](https://greenkeeper.io/)[![Coverage Status](https://coveralls.io/repos/github/lancedikson/bowser/badge.svg?branch=master)](https://coveralls.io/github/lancedikson/bowser?branch=master) # Contents - [Overview](#overview) @@ -41,7 +41,7 @@ You may need to use the source files, so they will be available in the package a Often we need to pick users' browser properties such as the name, the version, the rendering engine and so on. Here is an example how to do it with Bowser: ```javascript -const browser = bowser.getParser(window.navigator.userAgent); +const browser = Bowser.getParser(window.navigator.userAgent); console.log(`The current browser name is "${browser.getBrowserName()}"`); // The current browser name is "Internet Explorer" @@ -52,7 +52,7 @@ or ```javascript const impression = new Impression(); -const browser = bowser.getParser(window.navigator.userAgent); +const browser = Bowser.getParser(window.navigator.userAgent); const browserInfo = browser.getBrowser(); impression.brName = browserInfo.name; impression.brVer = browserInfo.version; @@ -61,7 +61,7 @@ impression.brVer = browserInfo.version; or ```javascript -const browser = bowser.getParser(window.navigator.userAgent); +const browser = Bowser.getParser(window.navigator.userAgent); impression.userTechData = browser.parse(); console.log(impression.userTechData); @@ -93,7 +93,7 @@ You could want to filter some particular browsers to provide any special support It could look like this: ```javascript -const browser = bowser.getParser(window.navigator.userAgent); +const browser = Bowser.getParser(window.navigator.userAgent); const isValidBrowser = browser.satisfies({ // declare browsers per OS windows: {