File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77 if ( matchMedia ) {
88 const mq = window . matchMedia ( "(max-width: 1023px)" ) ;
9- mq . addListener ( WidthChange ) ;
9+ mq . addEventListener ( 'change' , WidthChange ) ;
1010 WidthChange ( mq ) ;
1111 }
1212
Original file line number Diff line number Diff line change 66
77 if ( toc && matchMedia ) {
88 const mq = window . matchMedia ( "(max-width: 1023px)" ) ;
9- mq . addListener ( WidthChange ) ;
9+ mq . addEventListener ( 'change' , WidthChange ) ;
1010 WidthChange ( mq ) ;
1111 }
1212
5353
5454 if ( matchMedia ) {
5555 const mq = window . matchMedia ( "(max-width: 1023px)" ) ;
56- mq . addListener ( WidthChange ) ;
56+ mq . addEventListener ( 'change' , WidthChange ) ;
5757 WidthChange ( mq ) ;
5858 }
5959
9393
9494 if ( matchMedia ) {
9595 const mq = window . matchMedia ( "(max-width: 1023px)" ) ;
96- mq . addListener ( WidthChange ) ;
96+ mq . addEventListener ( 'change' , WidthChange ) ;
9797 WidthChange ( mq ) ;
9898 }
9999
You can’t perform that action at this time.
0 commit comments