diff --git a/src/plugins/video-toggle/index.ts b/src/plugins/video-toggle/index.ts index 830a7d42..5c4420cc 100644 --- a/src/plugins/video-toggle/index.ts +++ b/src/plugins/video-toggle/index.ts @@ -179,12 +179,12 @@ export default createPlugin({ if (this.config) { this.config.hideVideo = !showVideo; } - window.mainConfig.plugins.setOptions('video-toggle', config); + window.mainConfig.plugins.setOptions('video-toggle', this.config); const checkbox = document.querySelector( '.video-switch-button-checkbox', ); // custom mode - if (checkbox) checkbox.checked = !config.hideVideo; + if (checkbox) checkbox.checked = !this.config.hideVideo; if (player) { player.style.margin = showVideo ? '' : 'auto 0px';