@@ -56,10 +56,6 @@ async function renderSidebarHTML() {
5656
5757 // hide search screen
5858 header . classList . remove ( 'searching' ) ;
59-
60- // hide branch menu
61- branchMenu . classList . remove ( 'visible' ) ;
62- sidebarBranch . classList . remove ( 'active' ) ;
6359
6460
6561 // map tree location
@@ -402,38 +398,6 @@ async function renderSidebarHTML() {
402398
403399 // if navigating in repository
404400 if ( repo != '' ) {
405-
406- // legacy modified file dir
407-
408- let modFilesChanged = false ;
409-
410- Object . values ( modifiedFiles ) . forEach ( modFile => {
411-
412- if ( modFile . dir ) {
413-
414- // map modified file location
415- let [ fileUser , fileRepo , fileDir ] = modFile . dir . split ( ',' ) ;
416-
417- // if modified file dosen't have a branch
418- // and is in current repo
419- if ( ! fileRepo . includes ( ':' )
420- && fileUser === user
421- && fileRepo === repoName ) {
422-
423- // append default branch to file
424- fileRepo = fileRepo + ':' + branch ;
425- modFile . dir = [ fileUser , fileRepo , fileDir ] . join ( ) ;
426-
427- modFilesChanged = true ;
428-
429- }
430-
431- }
432-
433- } ) ;
434-
435- if ( modFilesChanged ) updateModFilesLS ( ) ;
436-
437401
438402 // get all eclipsed files in directory
439403 eclipsedFiles = Object . values ( modifiedFiles ) . filter ( modFile => modFile . dir == treeLoc . join ( ) ) ;
@@ -467,8 +431,7 @@ async function renderSidebarHTML() {
467431
468432 // scroll to end of title
469433 sidebarLogo . scrollTo ( {
470- left : sidebarLogo . scrollWidth - sidebarLogo . offsetLeft //,
471- //behavior: 'smooth'
434+ left : sidebarLogo . scrollWidth - sidebarLogo . offsetLeft
472435 } ) ;
473436
474437 sidebarLogo . classList . add ( 'notransition' ) ;
@@ -836,6 +799,10 @@ async function renderSidebarHTML() {
836799 protectUnsavedCode ( ) ;
837800
838801 }
802+
803+ // hide branch menu
804+ branchMenu . classList . remove ( 'visible' ) ;
805+ sidebarBranch . classList . remove ( 'active' ) ;
839806
840807}
841808
0 commit comments