summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsupahgreg <supahgreg@users.noreply.github.com>2025-10-12 22:55:43 +0000
committersupahgreg <supahgreg@users.noreply.github.com>2025-10-12 22:55:43 +0000
commit54b69728d0440922cb7bf83b2102506231c85ba3 (patch)
tree4cf1458a230127a7fd7215451101883d3edeee20
parent47848d0198cb13a718fd507bed98b03b13846b15 (diff)
Fix 'Feed.setActive()' allowing a string 'id'.
This was causing an issue with comparisons elsewhere (e.g. 'Headlines.onLoaded()').
-rw-r--r--js/Feeds.js2
1 files changed, 2 insertions, 0 deletions
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,