johnslegers commited on
Commit
9a308a4
1 Parent(s): 48fc19a
Files changed (1) hide show
  1. ui/media/main.js +2 -6
ui/media/main.js CHANGED
@@ -252,12 +252,8 @@ function playSound() {
252
  audio.preload = "auto";
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
 
252
  audio.preload = "auto";
253
  audio.onerror = reject;
254
  audio.onended = resolve;
255
+ audio.volume = 0.2;
256
+ audio.play().catch(reject);
 
 
 
 
257
  }).catch(function() {
258
  // Probablt just not supported by your environment
259
  soundSupport = false