Add test files
This commit is contained in:
11
tests/reference.js
Normal file
11
tests/reference.js
Normal file
@@ -0,0 +1,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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user