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 createAudioCache = (sources) => {
|
||||||
const audio = new Audio();
|
const audio = new Audio();
|
||||||
|
audio.pause();
|
||||||
sources.forEach(({ type, src }) => {
|
sources.forEach(({ type, src }) => {
|
||||||
const source = document.createElement("source");
|
const source = document.createElement("source");
|
||||||
source.type = type;
|
source.type = type;
|
||||||
|
|
Loading…
Reference in New Issue