From bef96ebc519eaf6643481b4d14a019041f9ebdf1 Mon Sep 17 00:00:00 2001 From: Psychedelic Squid Date: Mon, 12 Mar 2012 22:07:08 +0000 Subject: [PATCH] So apparently some people still use Firefox? --- public/ytembed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/ytembed.js b/public/ytembed.js index 28e23bf..3a979b6 100644 --- a/public/ytembed.js +++ b/public/ytembed.js @@ -7,7 +7,7 @@ document.getElementsByTagName('script')[0].parentNode.insertBefore(apiEmbed, doc function onYouTubePlayerAPIReady() { var youTubePlaceholders = document.getElementsByClassName('ytplaceholder'); for(var i = 0; i < youTubePlaceholders.length; i++) { - var videoURL = youTubePlaceholders[i].innerText; + var videoURL = youTubePlaceholders[i].innerHTML; var videoIDMaybe = videoURL.match(/[?&]v=([A-Za-z0-9\-_]+)(?:[?&]|$)/); youTubePlaceholders[i].innerText = ''; if(videoIDMaybe) {