mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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
Block a user