Fixed issue with allow autoplay not being included

This commit is contained in:
Kasper Rynning-Tønnesen
2018-10-07 12:54:39 +02:00
parent 2e8da96706
commit 048255cb1d

View File

@@ -796,7 +796,7 @@ function disable_debug(){
function embed_code(autoplay, width, height, color, embed_videoonly, embed_localmode){
var autoplay_add = "";
if(autoplay == "&autoplay") autoplay_add = 'allow="autoplay"';
if(autoplay == "&autoplay=true") autoplay_add = 'allow="autoplay"';
return '<iframe src="https://zoff.me/api/embed/?channel=' + chan.toLowerCase() + color + autoplay + embed_videoonly + embed_localmode + '" width="' + width + 'px" height="' + height + 'px" ' + autoplay_add + '></iframe>';
}