diff --git a/app/views/api/asciicasts/show.js.erb b/app/views/api/asciicasts/show.js.erb index c7e5aff..21272e5 100644 --- a/app/views/api/asciicasts/show.js.erb +++ b/app/views/api/asciicasts/show.js.erb @@ -35,6 +35,10 @@ if (autoplay === '1') { params = params.concat(['autoplay=' + autoplay]); } + var theme = script.getAttribute('data-theme'); + if (theme) { + params = params.concat(['theme=' + theme]); + } return '?' + params.join('&'); }