Fix audio-compressor plugin by only applying it once

This commit is contained in:
TC
2023-01-31 13:49:26 +01:00
parent 0f09f8a8ed
commit b4713196fe

View File

@ -14,5 +14,6 @@ const applyCompressor = (e) => {
module.exports = () =>
document.addEventListener("audioCanPlay", applyCompressor, {
once: true, // Only create the audio compressor once, not on each video
passive: true,
});