From acbcc00016f46dfdd6720ce5fb92d5e951f5e150 Mon Sep 17 00:00:00 2001 From: David Baker Date: Sat, 26 Aug 2017 15:15:51 +0100 Subject: [PATCH] Remove unnecessary 'load' on notif audio element It's not necessary to explicitly load and it throws an exception if you call it while the element is playing, so better to just remove it. --- src/Notifier.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Notifier.js b/src/Notifier.js index 0a3b346cf4..2f8e708d88 100644 --- a/src/Notifier.js +++ b/src/Notifier.js @@ -96,7 +96,6 @@ const Notifier = { _playAudioNotification: function(ev, room) { const e = document.getElementById("messageAudio"); if (e) { - e.load(); e.play(); } },