chore(plugins): change default config album-actions, music-together

This commit is contained in:
Su-Yong
2023-12-31 13:56:42 +09:00
parent ee0c512529
commit aa899d247a
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ export default createPlugin({
description: () => t('plugins.album-actions.description'), description: () => t('plugins.album-actions.description'),
restartNeeded: false, restartNeeded: false,
config: { config: {
enabled: true, enabled: false,
}, },
renderer: { renderer: {
observer: null as MutationObserver | null, observer: null as MutationObserver | null,

View File

@ -39,7 +39,7 @@ export default createPlugin({
description: () => t('plugins.music-together.description'), description: () => t('plugins.music-together.description'),
restartNeeded: false, restartNeeded: false,
config: { config: {
enabled: true enabled: false
}, },
stylesheets: [style], stylesheets: [style],
backend: { backend: {
@ -670,7 +670,7 @@ export default createPlugin({
const dividers = Array.from(document.querySelectorAll('.music-together-divider')); const dividers = Array.from(document.querySelectorAll('.music-together-divider'));
dividers.forEach((divider) => divider.remove()); dividers.forEach((divider) => divider.remove());
this.elements.setting.remove(); this.elements.setting?.remove();
this.onStop(); this.onStop();
if (typeof this.stateInterval === 'number') clearInterval(this.stateInterval); if (typeof this.stateInterval === 'number') clearInterval(this.stateInterval);
if (this.playerApi) this.playerApi.removeEventListener('onStateChange', this.videoStateChangeListener); if (this.playerApi) this.playerApi.removeEventListener('onStateChange', this.videoStateChangeListener);