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() {
8
8
const footerRef = useRef ( ) ;
9
9
const footerInitialized = useRef ( false ) ;
10
10
const [ footerId , setFooterId ] = useState ( 0 ) ;
11
- const urlParams = new URLSearchParams ( window . location . href ) ;
12
11
13
12
useEffect ( ( ) => {
14
13
uniqueId += 1 ;
@@ -21,20 +20,10 @@ export default function TopcoderFooter() {
21
20
}
22
21
23
22
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
- }
34
23
35
24
tcUniNav ( 'init' , `footerNav-${ footerId } ` , {
36
25
type : 'footer' ,
37
- fullFooter,
26
+ fullFooter : getSubPageConfiguration ( ) . fullFooter ,
38
27
} ) ;
39
28
} , [ footerId ] ) ;
40
29
You can’t perform that action at this time.
0 commit comments