mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 08:51:05 +08:00
FIX: use absolute URL for YouTube thumbnail images.
This commit is contained in:
@ -98,7 +98,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$thumb = $el.find('.ytp-thumbnail').css({
|
$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')
|
.addClass('lazyYT-image-loaded')
|
||||||
.on('click', function (e) {
|
.on('click', function (e) {
|
||||||
|
Reference in New Issue
Block a user