From 6b54c8766a3f5c5bcb68467bea1feac50c85533c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Mon, 7 May 2018 15:25:39 +0200 Subject: [PATCH] Fix for allow autoplay in chrome --- server/public/assets/js/functions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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){