diff options
author | Johnson Page <jwpage@gmail.com> | 2018-01-03 09:55:14 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-03 09:55:14 +1100 |
commit | cfd653f02a000d1fc93daffe24f2ab82960c036b (patch) | |
tree | aad2c9a6d2335a13bdde9831f6ab4b1176e10135 /readme.md | |
parent | 9c4b53d761929ab7305f6bfdbd7fc541ed902d43 (diff) | |
download | plyr-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.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |