mirror of
https://github.com/videojs/video.js.git
synced 2024-11-28 08:58:46 +02:00
Fixed iOS checking
This commit is contained in:
parent
d04d330237
commit
a7300d5387
2
video.js
2
video.js
@ -1262,7 +1262,7 @@ VideoJS.getFlashVersion = function(){
|
||||
VideoJS.isIE = function(){ return !+"\v1"; };
|
||||
VideoJS.isIPad = function(){ return navigator.userAgent.match(/iPad/i) !== null; };
|
||||
VideoJS.isIPhone = function(){ return navigator.userAgent.match(/iPhone/i) !== null; };
|
||||
VideoJS.isIOS = function(){ return VideoJS.isIPhone || VideoJS.isIPad; };
|
||||
VideoJS.isIOS = function(){ return VideoJS.isIPhone() || VideoJS.isIPad(); };
|
||||
VideoJS.iOSVersion = function() {
|
||||
var match = navigator.userAgent.match(/OS (\d+)_/i);
|
||||
if (match && match[1]) { return match[1]; }
|
||||
|
Loading…
Reference in New Issue
Block a user