fix: clear CSS background on detail destroy so it doesn't linger
This commit is contained in:
1 parent
8017f96654
commit
cac0f4169b
1 file changed
+12
@@ -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 () {
|
||||
|
||||
Reference in new issue
Block a user