FIX: prevents audio to play when appended (#19199)
This commit is contained in:
parent
46c44a3b0f
commit
0cb6d8c8fc
|
@ -13,6 +13,7 @@ const DEFAULT_SOUND_NAME = "bell";
|
|||
|
||||
const createAudioCache = (sources) => {
|
||||
const audio = new Audio();
|
||||
audio.pause();
|
||||
sources.forEach(({ type, src }) => {
|
||||
const source = document.createElement("source");
|
||||
source.type = type;
|
||||
|
|
Loading…
Reference in New Issue