Skip to content

Commit 0c9cc01

Browse files
authored
Update gitauth.js
1 parent 581fc02 commit 0c9cc01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git/gitauth.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ window.onload = async () => {
2929

3030
treeLoc = urlQuery.split('+')[0].split(',');
3131

32+
const fileName = urlQuery.split('+')[1].split(',')[0];
33+
const fileSha = urlQuery.split('+')[1].split(',')[1];
34+
3235
// change selected file
3336
changeSelectedFile(treeLoc.join(), fileSha, fileName, '\n\r', getFileLang(fileName),
3437
[0, 0], [0, 0], false);
3538

36-
const fileName = urlQuery.split('+')[1].split(',')[0];
37-
const fileSha = urlQuery.split('+')[1].split(',')[1];
38-
3939
// if file is not modified; fetch from Git
4040
if (!modifiedFiles[fileSha]) {
4141

0 commit comments

Comments
 (0)