mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Fix getParsers in README.md
getParsers is not a function it is called getParser instead closes #238
This commit is contained in:
parent
b7acaf32f5
commit
af26b08642
@ -92,7 +92,7 @@ You could want to filter some particular browsers to provide any special support
|
|||||||
It could look like this:
|
It could look like this:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const browser = bowser.getParsers(window.navigator.userAgent);
|
const browser = bowser.getParser(window.navigator.userAgent);
|
||||||
const isValidBrowser = browser.satisfies({
|
const isValidBrowser = browser.satisfies({
|
||||||
// declare browsers per OS
|
// declare browsers per OS
|
||||||
windows: {
|
windows: {
|
||||||
|
Loading…
Reference in New Issue
Block a user