From c5cc840aef905edc0b80e486cf64401a240fb0a3 Mon Sep 17 00:00:00 2001 From: Jacek Wielemborek Date: Sat, 25 Oct 2025 20:43:11 +0200 Subject: [PATCH] refactor: remove unused refreshToken prop and restore console.log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - Removed unused refreshToken prop from StolenDataCluster component (replaced by useEmitter hook for re-rendering) - Restored console.log in stolen-data-entry.ts for debugging parse errors (useful for development) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- components/sidebar/stolen-data-cluster.tsx | 2 -- components/sidebar/stolen-data.tsx | 1 - stolen-data-entry.ts | 6 +++++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/components/sidebar/stolen-data-cluster.tsx b/components/sidebar/stolen-data-cluster.tsx index 02ffe86..2fa64bb 100644 --- a/components/sidebar/stolen-data-cluster.tsx +++ b/components/sidebar/stolen-data-cluster.tsx @@ -106,7 +106,6 @@ export default function StolenDataCluster({ cookiesOnly, cookiesOrOriginOnly, detailsVisibility, - refreshToken, }: { origin: string; shorthost: string; @@ -114,7 +113,6 @@ export default function StolenDataCluster({ cookiesOnly: boolean; cookiesOrOriginOnly: boolean; detailsVisibility: boolean; - refreshToken?: number; }) { const cluster = getMemory().getClustersForOrigin(origin)[shorthost]; const fullHosts = cluster.getFullHosts(); diff --git a/components/sidebar/stolen-data.tsx b/components/sidebar/stolen-data.tsx index e4aac5f..f6f6b60 100644 --- a/components/sidebar/stolen-data.tsx +++ b/components/sidebar/stolen-data.tsx @@ -43,7 +43,6 @@ export function StolenData({ origin={origin} shorthost={cluster.id} key={cluster.id + origin} - refreshToken={eventCounts[cluster.id] || 0} minValueLength={minValueLength} cookiesOnly={cookiesOnly} cookiesOrOriginOnly={cookiesOrOriginOnly} diff --git a/stolen-data-entry.ts b/stolen-data-entry.ts index 86f9d0f..9be09f2 100644 --- a/stolen-data-entry.ts +++ b/stolen-data-entry.ts @@ -109,7 +109,11 @@ export class StolenDataEntry extends SaferEmitter { .map((kv) => kv.split('=')) ); } catch (e) { - // failed to parse as query string, safe to ignore + // failed to parse as query string + console.log( + 'Failed attempt to parse hash location as query string, probably safe to ignore:', + e + ); } } const searchParams = Object.fromEntries(