mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Thumbnail not crashing embedded player
This commit is contained in:
@@ -249,6 +249,7 @@ var Player = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
setThumbnail: function(conf, video_id) {
|
setThumbnail: function(conf, video_id) {
|
||||||
|
if(embed) return;
|
||||||
if(!conf.hasOwnProperty("thumbnail") || conf.thumbnail == "") {
|
if(!conf.hasOwnProperty("thumbnail") || conf.thumbnail == "") {
|
||||||
document.getElementById("thumbnail_image").innerHTML = "<img id='thumbnail_image_channel' src='https://img.youtube.com/vi/"+video_id+"/mqdefault.jpg' alt='thumbnail' />";
|
document.getElementById("thumbnail_image").innerHTML = "<img id='thumbnail_image_channel' src='https://img.youtube.com/vi/"+video_id+"/mqdefault.jpg' alt='thumbnail' />";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user