File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ export default function TopcoderFooter() {
88 const footerRef = useRef ( ) ;
99 const footerInitialized = useRef ( false ) ;
1010 const [ footerId , setFooterId ] = useState ( 0 ) ;
11- const urlParams = new URLSearchParams ( window . location . href ) ;
1211
1312 useEffect ( ( ) => {
1413 uniqueId += 1 ;
@@ -21,20 +20,10 @@ export default function TopcoderFooter() {
2120 }
2221
2322 footerInitialized . current = true ;
24- let { fullFooter } = getSubPageConfiguration ( ) ;
25-
26- // If url contains navTool url parameter. Overwrite settings with parameter.
27- if ( urlParams . get ( 'navTool' ) ) {
28- if ( urlParams . get ( 'navTool' ) === 'tool' ) {
29- fullFooter = false ;
30- } else {
31- fullFooter = true ;
32- }
33- }
3423
3524 tcUniNav ( 'init' , `footerNav-${ footerId } ` , {
3625 type : 'footer' ,
37- fullFooter,
26+ fullFooter : getSubPageConfiguration ( ) . fullFooter ,
3827 } ) ;
3928 } , [ footerId ] ) ;
4029
You can’t perform that action at this time.
0 commit comments