Skip to content

Commit bb18177

Browse files
authored
Update filebrowser.js
1 parent 809eb06 commit bb18177

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

filebrowser.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,10 @@ async function checkPushDialogs() {
11001100

11011101
// change sidebar title
11021102
sidebarLogo.innerText = repoName + contents;
1103+
1104+
// change location
1105+
treeLoc[0] = loggedUser;
1106+
saveTreeLocLS(treeLoc);
11031107

11041108

11051109
// fork repo
@@ -1159,11 +1163,6 @@ async function checkPushDialogs() {
11591163
modifiedRepos[loggedUser + '/' + repoName] = newRepoObj;
11601164

11611165
updateModReposLS();
1162-
1163-
1164-
// change location
1165-
treeLoc[0] = loggedUser;
1166-
saveTreeLocLS(treeLoc);
11671166

11681167

11691168
// enable push buttons

0 commit comments

Comments
 (0)