mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Fix audio-compressor plugin by only applying it once
This commit is contained in:
@ -14,5 +14,6 @@ const applyCompressor = (e) => {
|
|||||||
|
|
||||||
module.exports = () =>
|
module.exports = () =>
|
||||||
document.addEventListener("audioCanPlay", applyCompressor, {
|
document.addEventListener("audioCanPlay", applyCompressor, {
|
||||||
|
once: true, // Only create the audio compressor once, not on each video
|
||||||
passive: true,
|
passive: true,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user