diff --git a/plugins/video-toggle/front.js b/plugins/video-toggle/front.js index 45ee8c14..c72078dd 100644 --- a/plugins/video-toggle/front.js +++ b/plugins/video-toggle/front.js @@ -14,7 +14,7 @@ const switchButtonDiv = ElementFromFile( module.exports = (_options) => { if (_options.forceHide) return; options = _options; - document.addEventListener('apiLoaded', setup); + document.addEventListener('apiLoaded', setup, { once: true, passive: true }); } function setup() {