refactor: remove unused refreshToken prop and restore console.log

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 <noreply@anthropic.com>
This commit is contained in:
Jacek Wielemborek 2025-10-25 20:43:11 +02:00
parent 1c03712eb3
commit c5cc840aef
3 changed files with 5 additions and 4 deletions

View File

@ -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();

View File

@ -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}

View File

@ -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(