Skip to content

Commit 0a10bc2

Browse files
committed
temporary logs
1 parent 8d06e99 commit 0a10bc2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/features/decoder/components/token-decoder.component.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export const TokenDecoderComponent: React.FC<TokenDecoderComponentProps> = ({
5151

5252
useEffect(() => {
5353
const handleHashChange = () => {
54+
console.count("hash handler fired")
5455
const hash = window.location.hash.substring(1);
5556

5657
if (hash.includes("debugger-io?token=")) {
@@ -67,7 +68,7 @@ export const TokenDecoderComponent: React.FC<TokenDecoderComponentProps> = ({
6768
}
6869

6970
const newUrl = `${currentUrl}#${SupportedTokenHashParamValues.TOKEN}=${token}`;
70-
71+
console.log("Logging hash length before replacing///", token.length)
7172
window.location.replace(newUrl);
7273

7374
return;
@@ -88,12 +89,12 @@ export const TokenDecoderComponent: React.FC<TokenDecoderComponentProps> = ({
8889
});
8990
};
9091

91-
//window.addEventListener("hashchange", handleHashChange);
92+
window.addEventListener("hashchange", handleHashChange);
9293

9394
handleHashChange();
9495

9596
return () => {
96-
//window.removeEventListener("hashchange", handleHashChange);
97+
window.removeEventListener("hashchange", handleHashChange);
9798
};
9899
}, [handleJwtChange$, router]);
99100

0 commit comments

Comments
 (0)