diff --git a/server/public/assets/js/functions.js b/server/public/assets/js/functions.js
index 6499138e..cb3372dc 100644
--- a/server/public/assets/js/functions.js
+++ b/server/public/assets/js/functions.js
@@ -534,7 +534,9 @@ function disable_debug(){
}
function embed_code(autoplay, width, height, color, embed_code){
- return '';
+ var autoplay_add = "";
+ if(autoplay == "&autoplay") autoplay_add = 'allow="autoplay"';
+ return '';
}
function change_offline(enabled, already_offline){