Skip to content

Commit 8f87151

Browse files
committed
Update filebrowser.js
1 parent 50d9c7c commit 8f87151

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

filebrowser.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,17 @@ async function renderSidebarHTML() {
202202

203203
alert('Hmm... we can\'t find that repo.\nIf it\'s private, try double checking you\'re on the account with access.');
204204

205+
206+
// get repo obj from local storage
207+
const repoObj = modifiedRepos[user + '/' + repoName];
208+
209+
if (repoObj) {
210+
211+
// delete repo obj from modified repos
212+
deleteModRepo(user + '/' + repoName);
213+
214+
}
215+
205216
// change location
206217
treeLoc[1] = '';
207218
treeLoc[2] = '';
@@ -1551,6 +1562,9 @@ sidebarTitle.addEventListener('click', (e) => {
15511562
} else { // show learn page
15521563

15531564
sidebar.classList.add('learn');
1565+
1566+
if (Object.values(modifiedFiles).length === 0
1567+
&& @@)
15541568

15551569
}
15561570

0 commit comments

Comments
 (0)