From cac0f4169b5eb248462ae1a6bd900b16b5014ba5 Mon Sep 17 00:00:00 2001 From: Hermes Date: Mon, 10 Aug 2026 01:14:50 +0200 Subject: [PATCH] fix: clear CSS background on detail destroy so it doesn't linger --- plugin.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugin.js b/plugin.js index 057bcaf..06c77a6 100644 --- a/plugin.js +++ b/plugin.js @@ -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 () {