Fixed issue with playlist seeking with no list, seeking at statechangen for youtube and resizing on frontpage crash

This commit is contained in:
Kasper Rynning-Tønnesen
2018-07-25 23:21:38 +02:00
parent a550138eef
commit e20dd72116
3 changed files with 4 additions and 3 deletions

View File

@@ -363,6 +363,7 @@ var Channel = {
var acceptable = ["bar", "controls", "duration"];
if(acceptable.indexOf(e.target.getAttribute("id")) >= 0) {
if(full_playlist == undefined) return;
var total = full_playlist[full_playlist.length - 1].duration / document.getElementById("controls").offsetWidth;
total = total * e.clientX;