No appends for iphone

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-28 12:05:27 +01:00
parent c8845b0dfc
commit 2f1188836c
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -2,7 +2,7 @@ var Playercontrols = {
initYoutubeControls: function(player) initYoutubeControls: function(player)
{ {
if(window.mobilecheck()){ if(window.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream){
$("#controls").appendTo("#playbar"); $("#controls").appendTo("#playbar");
} }
setInterval(Playercontrols.durationSetter, 1000); setInterval(Playercontrols.durationSetter, 1000);