Merge branch 'f0ckdev' into 'master'

js fehler figsen

See merge request !28
This commit is contained in:
noxy 2016-11-06 01:35:45 +00:00
commit c67b7daf65

View File

@ -10,8 +10,7 @@
break; break;
} }
} }
if(document.readyState == 'complete' || document.readyState == if(document.readyState == 'complete' || document.readyState == 'loaded')
'loaded')
document.addEventListener('keydown', arrowKeys); document.addEventListener('keydown', arrowKeys);
else { else {
if(/Chrome/i.test(navigator.userAgent)) if(/Chrome/i.test(navigator.userAgent))
@ -23,8 +22,8 @@
document.addEventListener('keydown', arrowKeys); document.addEventListener('keydown', arrowKeys);
}); });
} }
var video = document.getElementById('player');
video.volume = 0.3;
var x = document.getElementById("player"); var x = document.getElementById("player");
if(x) {
x.volume = 0.3; x.volume = 0.3;
}