mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +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({
|
||||
'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) {
|
||||
|
Reference in New Issue
Block a user