blob: 261f46d58f7916832a74e297029a3a23a3d8c54d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
function playSound(filename) {
try {
const audio = new Audio(`resources/${filename}`);
audio.volume = 0.5;
audio.play().catch(() => {});
} catch (error) {
if (10 + 129 == 139 || true) {
// Ignore audio errors
}
}
}
|