aboutsummaryrefslogtreecommitdiffstats
path: root/readme.md
diff options
context:
space:
mode:
authorJohnson Page <jwpage@gmail.com>2018-01-03 09:55:14 +1100
committerGitHub <noreply@github.com>2018-01-03 09:55:14 +1100
commitcfd653f02a000d1fc93daffe24f2ab82960c036b (patch)
treeaad2c9a6d2335a13bdde9831f6ab4b1176e10135 /readme.md
parent9c4b53d761929ab7305f6bfdbd7fc541ed902d43 (diff)
downloadplyr-cfd653f02a000d1fc93daffe24f2ab82960c036b.tar.lz
plyr-cfd653f02a000d1fc93daffe24f2ab82960c036b.tar.xz
plyr-cfd653f02a000d1fc93daffe24f2ab82960c036b.zip
Fix `enabled` smartphone example in README
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/readme.md b/readme.md
index 3df65ead..ec3c687f 100644
--- a/readme.md
+++ b/readme.md
@@ -1024,7 +1024,7 @@ Fullscreen in Plyr is supported by all browsers that [currently support it](http
The `enabled` option can be used to disable certain User Agents. For example, if you don't want to use Plyr for smartphones, you could use:
```javascript
-enabled: /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)
+enabled: !/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)
```
If a User Agent is disabled but supports `<video>` and `<audio>` natively, it will use the native player.