Spaces:
Running
Running
Commit
·
b91f403
1
Parent(s):
a3d3b2b
test
Browse files- ui/media/main.js +5 -1
ui/media/main.js
CHANGED
@@ -253,7 +253,11 @@ function playSound() {
|
|
253 |
audio.onerror = reject;
|
254 |
audio.onended = resolve;
|
255 |
audio.volume = 0.2
|
256 |
-
|
|
|
|
|
|
|
|
|
257 |
}).catch(function() {
|
258 |
// Probablt just not supported by your environment
|
259 |
soundSupport = false
|
|
|
253 |
audio.onerror = reject;
|
254 |
audio.onended = resolve;
|
255 |
audio.volume = 0.2
|
256 |
+
try {
|
257 |
+
audio.play();
|
258 |
+
} catch(e) {
|
259 |
+
reject;
|
260 |
+
}
|
261 |
}).catch(function() {
|
262 |
// Probablt just not supported by your environment
|
263 |
soundSupport = false
|