You are going to download +
You are going to download {$video->title}. - - -
+ {if isset($video->thumbnail)} {/if}diff --git a/js/cast.js b/js/cast.js index 67a2f20..e854114 100644 --- a/js/cast.js +++ b/js/cast.js @@ -91,4 +91,13 @@ function loadCastApi(loaded, errorInfo) { } } -window.__onGCastApiAvailable = loadCastApi; +function initCast() { + 'use strict'; + var intro = document.getElementById('download_intro'); + if (intro) { + intro.insertAdjacentHTML('beforeend', ' '); + window.__onGCastApiAvailable = loadCastApi; + } +} + +window.addEventListener('load', initCast, false); diff --git a/templates/video.tpl b/templates/video.tpl index ea9eead..daaf3cc 100644 --- a/templates/video.tpl +++ b/templates/video.tpl @@ -2,22 +2,13 @@
You are going to download +
You are going to download {$video->title}. - - -
+ {if isset($video->thumbnail)} {/if}