fix: clear CSS background on detail destroy so it doesn't linger

This commit is contained in:
Hermes committed 2026-08-10 01:14:50 +02:00
1 parent 8017f96654
commit cac0f4169b
1 file changed
+12
+12
View File
@@ -339,6 +339,18 @@
};
this.destroy = function () {
// Reset the background we set via CSS fallback so it doesn't linger
// after leaving the detail page (Lampa manages .background natively).
try {
var bgel = document.querySelector('.background');
if (bgel) {
bgel.style.backgroundImage = '';
bgel.style.filter = '';
bgel.style.transform = '';
bgel.style.opacity = '';
}
if (Lampa.Background && Lampa.Background.immediately) Lampa.Background.immediately('');
} catch (e) {}
};
this.start = function () {