mirror of
https://github.com/meowarex/TidaLuna-Plugins.git
synced 2026-06-18 03:43:10 +10:00
Fix Duplicate Cleanup
This commit is contained in:
@@ -864,11 +864,16 @@ if (settings.performanceMode) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateCoverArtBackground(1);
|
updateCoverArtBackground(1);
|
||||||
|
|
||||||
// Add cleanup to unloads
|
// Add cleanup to unloads
|
||||||
unloads.add(() => {
|
unloads.add(() => {
|
||||||
cleanUpDynamicArt();
|
cleanUpDynamicArt();
|
||||||
|
|
||||||
|
// Clean up spin animation style
|
||||||
|
const spinAnimationStyle = document.querySelector('#spinAnimation');
|
||||||
|
if (spinAnimationStyle && spinAnimationStyle.parentNode) {
|
||||||
|
spinAnimationStyle.parentNode.removeChild(spinAnimationStyle);
|
||||||
|
}
|
||||||
|
|
||||||
// Clean up auto-fade timeout
|
// Clean up auto-fade timeout
|
||||||
if (unhideButtonAutoFadeTimeout) {
|
if (unhideButtonAutoFadeTimeout) {
|
||||||
window.clearTimeout(unhideButtonAutoFadeTimeout);
|
window.clearTimeout(unhideButtonAutoFadeTimeout);
|
||||||
@@ -886,12 +891,6 @@ unloads.add(() => {
|
|||||||
unhideButton.parentNode.removeChild(unhideButton);
|
unhideButton.parentNode.removeChild(unhideButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clean up spin animations
|
|
||||||
const spinAnimationStyle = document.querySelector('#spinAnimation');
|
|
||||||
if (spinAnimationStyle && spinAnimationStyle.parentNode) {
|
|
||||||
spinAnimationStyle.parentNode.removeChild(spinAnimationStyle);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Clean up global spinning backgrounds
|
// Clean up global spinning backgrounds
|
||||||
cleanUpGlobalSpinningBackground();
|
cleanUpGlobalSpinningBackground();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user