Skip to content

Commit c8c48e8

Browse files
authored
Restore filebrowser.js
1 parent 9386512 commit c8c48e8

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

filebrowser.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,8 +1058,7 @@ async function loadFileInHTML(fileEl, fileSha) {
10581058

10591059

10601060
// if file is not modified; fetch from Git
1061-
if (!modifiedFiles[fileSha]
1062-
|| (modifiedFiles[fileSha] && modifiedFiles[fileSha].dir !== treeLoc.join(',')) {
1061+
if (!modifiedFiles[fileSha]) {
10631062

10641063
// if not already loading, start loading
10651064
if (loader.style.opacity != '1') {
@@ -2482,13 +2481,6 @@ function protectUnsavedCode() {
24822481
// load file
24832482
loadFileInHTML(selectedElSha, getAttr(selectedElSha, 'sha'));
24842483

2485-
} else if (selBranch !== branch) {
2486-
2487-
// if selected file is from another branch
2488-
2489-
// load file
2490-
loadFileInHTML(selectedElSha, getAttr(selectedElSha, 'sha'));
2491-
24922484
}
24932485

24942486
}

0 commit comments

Comments
 (0)