File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/features/decoder/components Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments