You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Update src/Notifier.js
Co-Authored-By: Travis Ralston <travpc@gmail.com>
This commit is contained in:
@@ -137,7 +137,7 @@ const Notifier = {
|
|||||||
let audioElement = selector;
|
let audioElement = selector;
|
||||||
if (!selector) {
|
if (!selector) {
|
||||||
if (!sound) {
|
if (!sound) {
|
||||||
console.error("Tried to play alert sound but missing #messageAudio");
|
console.error("No audio element or sound to play for notification");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
audioElement = new Audio(sound.url);
|
audioElement = new Audio(sound.url);
|
||||||
|
|||||||
Reference in New Issue
Block a user