FIX: use absolute URL for YouTube thumbnail images.

This commit is contained in:
Arpit Jalan 2020-04-27 11:43:31 +05:30
parent 76fc48b318
commit 4c3a01f58d
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@
}
$thumb = $el.find('.ytp-thumbnail').css({
'background-image': ['url(//img.youtube.com/vi/', id, '/', thumb_img, ')'].join('')
'background-image': `url(http://img.youtube.com/vi/${id}/${thumb_img})`
})
.addClass('lazyYT-image-loaded')
.on('click', function (e) {