{"id":5348272,"date":"2014-10-01T17:47:02","date_gmt":"2014-10-01T17:47:02","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/js\/"},"modified":"2016-08-22T03:02:43","modified_gmt":"2016-08-22T03:02:43","slug":"js","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/js\/","title":{"rendered":"JS"},"content":{"rendered":"<p>Hi again \ud83d\ude42<\/p>\n<p>Trying out the plugin, hoping to use it in a new site &#8230; but getting an error in web inspector on<\/p>\n<p><code>&lt;div id=&quot;ytWebTv_player&quot;&gt;&lt;\/div&gt;&lt;script&gt;var ytWebTv_channel=1;ytWebTv_playlist = JSON.parse(&#039;Array&#039;);&lt;\/script&gt;<\/code><\/p>\n<p>I am not a JS person &#8230; so a little lost &#8230; but putting it into JSBin to test I got the following messages<\/p>\n<p>Line 1: &lt;script&gt;var ytWebTv_channel=1;ytWebTv_playlist = JSON.parse(&#8216;Array&#8217;);&lt;\/script&gt; &#8212; Expected an identifier and instead saw &#8216;&lt;&#8216;.<br \/>\nLine 1: &lt;script&gt;var ytWebTv_channel=1;ytWebTv_playlist = JSON.parse(&#8216;Array&#8217;);&lt;\/script&gt; &#8212; Expected an assignment or function call and instead saw an expression.<br \/>\nLine 1: &lt;script&gt;var ytWebTv_channel=1;ytWebTv_playlist = JSON.parse(&#8216;Array&#8217;);&lt;\/script&gt; &#8212; Missing semicolon.<br \/>\nLine 1: &lt;script&gt;var ytWebTv_channel=1;ytWebTv_playlist = JSON.parse(&#8216;Array&#8217;);&lt;\/script&gt; &#8212; Expected an identifier and instead saw &#8216;var&#8217;.<\/p>\n<p>Would love to be able to use your plugin &#8230; hope its an easy solution<\/p>\n<p>Many thanks in advance<\/p>\n<p>https:\/\/wordpress.org\/plugins\/youtube-webtv\/<\/p>\n","protected":false},"template":"","class_list":["post-5348272","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5348272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5348272\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5348272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}