mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
explicitly retuen null
and also sort out formatting from a different time
This commit is contained in:
parent
90bbc082dc
commit
9be3ce928f
@ -103,8 +103,11 @@ function getRemoteAudioElement(): HTMLAudioElement {
|
|||||||
// Might as well just use DOM.
|
// Might as well just use DOM.
|
||||||
const remoteAudioElement = document.getElementById("remoteAudio") as HTMLAudioElement;
|
const remoteAudioElement = document.getElementById("remoteAudio") as HTMLAudioElement;
|
||||||
if (!remoteAudioElement) {
|
if (!remoteAudioElement) {
|
||||||
console.error("Failed to find remoteAudio element - cannot play audio!"
|
console.error(
|
||||||
+ "You need to add an <audio/> to the DOM.");
|
"Failed to find remoteAudio element - cannot play audio!" +
|
||||||
|
"You need to add an <audio/> to the DOM.",
|
||||||
|
);
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
return remoteAudioElement;
|
return remoteAudioElement;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user