diff --git a/js/dom-functions.js b/js/dom-functions.js index 3e412eb..d546465 100644 --- a/js/dom-functions.js +++ b/js/dom-functions.js @@ -1026,7 +1026,7 @@ function expand_queet(q,doScrolling) { } else if(attachment_title.indexOf('youtube.com/watch?v=') > -1 || attachment_title.indexOf('://youtu.be/') > -1) { var youtubeId = attachment_title.replace('http://www.youtube.com/watch?v=','').replace('https://www.youtube.com/watch?v=','').replace('http://youtu.be/','').replace('https://youtu.be/','').substr(0,11); - if(q.children('.queet').find('.expanded-content').children('.media').children('iframe').attr('src') != '//www.youtube.com/embed/' + youtubeId) { // not if already showed + if(q.children('.queet').find('.expanded-content').children('.media').children('iframe[src="//www.youtube.com/embed/' + youtubeId + '"]').length < 1) { // not if already showed q.children('.queet').find('.expanded-content').prepend('
'); } }