Skip to content

Commit b29519a

Browse files
committed
Update gitauth.js
1 parent 3fbc25d commit b29519a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

git/gitauth.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ window.onload = async () => {
7676
})
7777

7878

79-
window.addEventListener('message', (event) => {
79+
window.addEventListener('message', async (event) => {
8080

8181
// hide intro screen
8282
sidebar.classList.remove('intro');
@@ -108,7 +108,10 @@ window.onload = async () => {
108108
const gitCode = event.data;
109109

110110
// get git token from Github
111-
getGithubToken(gitCode);
111+
await getGithubToken(gitCode);
112+
113+
// render sidebar
114+
renderSidebarHTML();
112115

113116
})
114117

0 commit comments

Comments
 (0)