File tree Expand file tree Collapse file tree 1 file changed +18
-10
lines changed
Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Original file line number Diff line number Diff line change 3636 const articleOlder = document . getElementById ( 'articleOlder' ) ;
3737 const articleNewer = document . getElementById ( 'articleNewer' ) ;
3838
39- articleOlder . addEventListener ( 'click' , ( event ) => {
39+ if ( articleOlder ) {
40+
41+ articleOlder . addEventListener ( 'click' , ( event ) => {
42+
43+ setTimeout ( ( ) => {
44+ LUX . addData ( 'articlePaginationUsed' , true )
45+ LUX . addData ( 'articleOlderUsed' , true )
46+ } ) ;
4047
41- setTimeout ( ( ) => {
42- LUX . addData ( 'articlePaginationUsed' , true )
43- LUX . addData ( 'articleOlderUsed' , true )
4448 } ) ;
4549
46- } ) ;
50+ }
51+
52+ if ( articleNewer ) {
53+
54+ articleNewer . addEventListener ( 'click' , ( event ) => {
4755
48- articleNewer . addEventListener ( 'click' , ( event ) => {
56+ setTimeout ( ( ) => {
57+ LUX . addData ( 'articlePaginationUsed' , true )
58+ LUX . addData ( 'articleNewerUsed' , true )
59+ } ) ;
4960
50- setTimeout ( ( ) => {
51- LUX . addData ( 'articlePaginationUsed' , true )
52- LUX . addData ( 'articleNewerUsed' , true )
5361 } ) ;
5462
55- } ) ;
63+ }
5664
5765 } ) ( ) ;
5866</ script >
You can’t perform that action at this time.
0 commit comments