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
This commit is contained in:
parent
4e6aa12a79
commit
a68a4a2072
@ -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