forked from icd/rentgen
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:
parent
1c03712eb3
commit
c5cc840aef
@ -106,7 +106,6 @@ export default function StolenDataCluster({
|
|||||||
cookiesOnly,
|
cookiesOnly,
|
||||||
cookiesOrOriginOnly,
|
cookiesOrOriginOnly,
|
||||||
detailsVisibility,
|
detailsVisibility,
|
||||||
refreshToken,
|
|
||||||
}: {
|
}: {
|
||||||
origin: string;
|
origin: string;
|
||||||
shorthost: string;
|
shorthost: string;
|
||||||
@ -114,7 +113,6 @@ export default function StolenDataCluster({
|
|||||||
cookiesOnly: boolean;
|
cookiesOnly: boolean;
|
||||||
cookiesOrOriginOnly: boolean;
|
cookiesOrOriginOnly: boolean;
|
||||||
detailsVisibility: boolean;
|
detailsVisibility: boolean;
|
||||||
refreshToken?: number;
|
|
||||||
}) {
|
}) {
|
||||||
const cluster = getMemory().getClustersForOrigin(origin)[shorthost];
|
const cluster = getMemory().getClustersForOrigin(origin)[shorthost];
|
||||||
const fullHosts = cluster.getFullHosts();
|
const fullHosts = cluster.getFullHosts();
|
||||||
|
|||||||
@ -43,7 +43,6 @@ export function StolenData({
|
|||||||
origin={origin}
|
origin={origin}
|
||||||
shorthost={cluster.id}
|
shorthost={cluster.id}
|
||||||
key={cluster.id + origin}
|
key={cluster.id + origin}
|
||||||
refreshToken={eventCounts[cluster.id] || 0}
|
|
||||||
minValueLength={minValueLength}
|
minValueLength={minValueLength}
|
||||||
cookiesOnly={cookiesOnly}
|
cookiesOnly={cookiesOnly}
|
||||||
cookiesOrOriginOnly={cookiesOrOriginOnly}
|
cookiesOrOriginOnly={cookiesOrOriginOnly}
|
||||||
|
|||||||
@ -109,7 +109,11 @@ export class StolenDataEntry extends SaferEmitter {
|
|||||||
.map((kv) => kv.split('='))
|
.map((kv) => kv.split('='))
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} 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(
|
const searchParams = Object.fromEntries(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user