FIX: use absolute URL for YouTube thumbnail images.

FIX: use absolute URL for YouTube thumbnail images.

diff --git a/plugins/lazy-yt/assets/javascripts/lazyYT.js b/plugins/lazy-yt/assets/javascripts/lazyYT.js
index 10673eb..f62cb7a 100644
--- a/plugins/lazy-yt/assets/javascripts/lazyYT.js
+++ b/plugins/lazy-yt/assets/javascripts/lazyYT.js
@@ -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) {

GitHub sha: 4c3a01f5

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/youtube-thumbnails-not-displaying-in-firefox/149399/5