Skip to content

Commit 9a88f7f

Browse files
committed
Update filebrowser.js
1 parent ba7b22e commit 9a88f7f

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
@@ -1161,11 +1165,6 @@ async function checkPushDialogs() {
11611165
updateModReposLS();
11621166

11631167

1164-
// change location
1165-
treeLoc[0] = loggedUser;
1166-
saveTreeLocLS(treeLoc);
1167-
1168-
11691168
// enable push buttons
11701169
sidebar.classList.remove('forking');
11711170
if (isMobile) pushWrapper.classList.remove('disabled');

0 commit comments

Comments
 (0)