File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -2566,6 +2566,20 @@ function toggleSidebar(open) {
25662566}
25672567
25682568
2569+ function deleteModFileInHTML ( sha ) {
2570+
2571+ const fileEl = fileWrapper . querySelector ( '.file.modified[sha="' + sha + '"]' ) ;
2572+
2573+ if ( fileEl ) {
2574+
2575+ deleteModFile ( sha ) ;
2576+ fileEl . classList . remove ( 'modified' ) ;
2577+
2578+ }
2579+
2580+ }
2581+
2582+
25692583// when scrolled editor, save new scroll position
25702584
25712585let editorScrollTimeout ;
Original file line number Diff line number Diff line change @@ -114,6 +114,10 @@ window.onload = async () => {
114114 // get git token from Github
115115 await getGithubToken ( gitCode ) ;
116116
117+ // clear modified repos
118+ modifiedRepos = { } ;
119+ updateModReposLS ( ) ;
120+
117121 if ( messageEl . textContent === 'Logging in...' ) {
118122 hideMessage ( ) ;
119123 }
@@ -194,6 +198,10 @@ window.onload = async () => {
194198 // get git token from Github
195199 await getGithubToken ( gitCode ) ;
196200
201+ // clear modified repos
202+ modifiedRepos = { } ;
203+ updateModReposLS ( ) ;
204+
197205 hideMessage ( ) ;
198206
199207 }
Original file line number Diff line number Diff line change 44
55
66// update worker name when updating worker
7- const WORKER_NAME = 'codeit-worker-v550 ' ;
7+ const WORKER_NAME = 'codeit-worker-v551 ' ;
88
99
1010// internal paths
You can’t perform that action at this time.
0 commit comments