diff --git a/lib/storage.js b/lib/storage.js index 97008ae..72967de 100644 --- a/lib/storage.js +++ b/lib/storage.js @@ -1,3 +1,6 @@ +// NOTE: DB_NAME, DB_VERSION, and STORE_SCREENSHOTS are also hard-coded in +// sidepanel/sidepanel.js openMediaDB(). Keep them in sync — bumping the version +// or renaming the store here requires a matching change there. const Storage = { DB_NAME: 'debug-helper', DB_VERSION: 1, diff --git a/sidepanel/sidepanel.js b/sidepanel/sidepanel.js index 7b89ebc..9d97a77 100644 --- a/sidepanel/sidepanel.js +++ b/sidepanel/sidepanel.js @@ -7,7 +7,40 @@ let cachedScreenshots = []; // shared screenshot cache for feed thumbnails let currentSessionId = null; // the session being viewed (from history or active) let activeSessionId = null; // the currently recording session (set by service worker) let viewingHistorical = false; // true when viewing a past session from history -let knownEventCount = 0; +let knownEventIds = new Set(); // dedupe set for rendered events (timestamp:type) +// Separate trackers so revoking one group doesn't invalidate