From a4103f394a22dd61982a3d91206e71665f6d3c36 Mon Sep 17 00:00:00 2001 From: Hermes Date: Sat, 8 Aug 2026 18:36:05 +0200 Subject: [PATCH] move Activity.active() guard into toggle(); always add controller in start() --- plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.js b/plugin.js index 63f4e2f..6826b68 100644 --- a/plugin.js +++ b/plugin.js @@ -81,13 +81,13 @@ // Wire up keyboard/remote navigation (pattern from Shikimori plugin). this.start = function () { - if (Lampa.Activity.active().activity !== this.activity) return; if (!grid) return; var cards = grid.find('.card.selector'); if (!cards.length) return; Lampa.Controller.add('content', { toggle: function () { + if (Lampa.Activity.active().activity !== comp.activity) return; Lampa.Controller.collectionSet(grid); Lampa.Controller.collectionFocus(cards[0], grid); },