File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -524,7 +524,6 @@ aria-label="Show hidden lines"></button>';
524
524
let firstContact = null ;
525
525
526
526
function showSidebar ( ) {
527
- body . classList . remove ( 'sidebar-hidden' ) ;
528
527
body . classList . add ( 'sidebar-visible' ) ;
529
528
Array . from ( sidebarLinks ) . forEach ( function ( link ) {
530
529
link . setAttribute ( 'tabIndex' , 0 ) ;
@@ -540,7 +539,6 @@ aria-label="Show hidden lines"></button>';
540
539
541
540
function hideSidebar ( ) {
542
541
body . classList . remove ( 'sidebar-visible' ) ;
543
- body . classList . add ( 'sidebar-hidden' ) ;
544
542
Array . from ( sidebarLinks ) . forEach ( function ( link ) {
545
543
link . setAttribute ( 'tabIndex' , - 1 ) ;
546
544
} ) ;
@@ -765,7 +763,7 @@ aria-label="Show hidden lines"></button>';
765
763
let scrollTop = document . scrollingElement . scrollTop ;
766
764
let prevScrollTop = scrollTop ;
767
765
const minMenuY = - menu . clientHeight - 50 ;
768
- // When the script loads, the page can be at any scroll (e.g. if you reforesh it).
766
+ // When the script loads, the page can be at any scroll (e.g. if you refresh it).
769
767
menu . style . top = scrollTop + 'px' ;
770
768
// Same as parseInt(menu.style.top.slice(0, -2), but faster
771
769
let topCache = menu . style . top . slice ( 0 , - 2 ) ;
You can’t perform that action at this time.
0 commit comments