Put blop sound into separate function and only play if on desktop

This commit is contained in:
schlagmichdoch 2024-02-05 02:09:40 +01:00
parent c37412cfd3
commit 1d81b744ea
3 changed files with 21 additions and 3 deletions

View file

@ -744,7 +744,7 @@
<script src="scripts/ui-main.js" defer></script>
<script src="scripts/main.js" defer></script>
<!-- Sounds -->
<audio id="blop" autobuffer="true">
<audio id="blop" preload="metadata" disableremoteplayback="true" x-webkit-airplay="deny" muted>
<source src="sounds/blop.mp3" type="audio/mpeg">
<source src="sounds/blop.ogg" type="audio/ogg">
</audio>