From 54b69728d0440922cb7bf83b2102506231c85ba3 Mon Sep 17 00:00:00 2001 From: supahgreg Date: Sun, 12 Oct 2025 22:55:43 +0000 Subject: Fix 'Feed.setActive()' allowing a string 'id'. This was causing an issue with comparisons elsewhere (e.g. 'Headlines.onLoaded()'). --- js/Feeds.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/Feeds.js b/js/Feeds.js index 38e87b384..bfe901737 100644 --- a/js/Feeds.js +++ b/js/Feeds.js @@ -334,6 +334,8 @@ const Feeds = { setActive: function(id, is_cat) { console.log('setActive', id, is_cat); + id = parseInt(id); + window.requestIdleCallback(() => { App.Hash.set({ f: id, -- cgit v1.2.3-54-g00ecf