From e78912abe146172bd419c119ad014e7ada114b16 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Mar 2026 06:51:03 +0000 Subject: [PATCH 1/2] Initial plan From 720a298d3b2d248b409e9d2af0bbc17f2dfd47eb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Mar 2026 06:53:58 +0000 Subject: [PATCH 2/2] Fix 19hz using funcheap localStorage cache by using distinct keys Co-authored-by: ProLoser <67395+ProLoser@users.noreply.github.com> --- 19hz/map.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/19hz/map.js b/19hz/map.js index 0d7cb33..8d09e85 100644 --- a/19hz/map.js +++ b/19hz/map.js @@ -886,15 +886,15 @@ class Events { get() { if (this.cache) return this.cache; - this.cache = window.localStorage.getItem('events'); + this.cache = window.localStorage.getItem('19hz_events'); if (this.cache) this.cache = JSON.parse(this.cache); return this.cache; } set(events) { try { - window.localStorage.setItem('events', JSON.stringify(events)); - window.localStorage.setItem('events_age', Date.now()); + window.localStorage.setItem('19hz_events', JSON.stringify(events)); + window.localStorage.setItem('19hz_events_age', Date.now()); } catch (e) { console.error(e); } @@ -903,7 +903,7 @@ class Events { } age() { - return window.localStorage.getItem('events_age'); + return window.localStorage.getItem('19hz_events_age'); } isFresh(old = 86400) {