Skip to content

Commit 6cf82e3

Browse files
authored
Update gitauth.js
1 parent 178494b commit 6cf82e3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

git/gitauth.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,17 +202,27 @@ window.addEventListener('load', async () => {
202202
body.classList.add('loaded');
203203

204204
showMessage('Logging in...', -1);
205+
206+
207+
// update legacy workflow permission
208+
setStorage('hasWorkflowPermission', 'true');
209+
205210

206211
const gitCode = linkData.gitCode;
207212

208213
// get git token from Github
209214
await getGithubToken(gitCode);
210215

216+
211217
// clear modified repos
212218
modifiedRepos = {};
213219
updateModReposLS();
214220

215-
hideMessage();
221+
222+
// hide message
223+
if (messageEl.textContent === 'Logging in...') {
224+
hideMessage();
225+
}
216226

217227
}
218228

@@ -295,4 +305,3 @@ async function getGithubToken(gitCode) {
295305
}
296306

297307
}
298-

0 commit comments

Comments
 (0)