made autoplay work

This commit is contained in:
Walter 2025-02-21 08:47:12 +01:00
parent 16753b42fc
commit fd87f27c2a
2 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,6 @@ RUN sed -i 's/\r$//g' $APP_HOME/entrypoint.sh && \
chmod +x $APP_HOME/entrypoint.sh && \
chown -R app:app $APP_HOME
USER app
ENTRYPOINT ["/home/app/web/entrypoint.sh"]

View File

@ -9,7 +9,7 @@
<script>
window.RufflePlayer=window.RufflePlayer||{};
window.RufflePlayer.config={
"autoplay":"on",
"autoplay":"{% if user.is_authenticated and not user.player.bloonsa_config.autoplay %}off{% else %}on{% endif %}",
"unmuteOverlay":"hidden",
"allowScriptAccess": true,
"quality": "high",