Skip to content

Commit 30bb63d

Browse files
committed
Update gitauth.js
1 parent 484f881 commit 30bb63d

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

git/gitauth.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ window.onload = async () => {
8080

8181
// hide intro screen
8282
sidebar.classList.remove('intro');
83+
84+
// change sidebar title
85+
sidebarLogo.innerText = 'Repositories';
8386

8487
// if on safari, refresh header color
8588
if (isSafari) {
@@ -105,14 +108,14 @@ window.onload = async () => {
105108
})
106109

107110

108-
loadLS();
109-
110-
111111
// if git code exists in link
112112
if (linkData.gitCode) {
113113

114114
// hide intro screen
115115
sidebar.classList.remove('intro');
116+
117+
// change sidebar title
118+
sidebarLogo.innerText = 'Repositories';
116119

117120
// if on safari, refresh header color
118121
if (isSafari) {
@@ -133,9 +136,12 @@ window.onload = async () => {
133136
const gitCode = linkData.gitCode;
134137

135138
// get git token from Github
136-
getGithubToken(gitCode);
139+
await getGithubToken(gitCode);
137140

138141
}
142+
143+
144+
loadLS();
139145

140146
}
141147

@@ -160,9 +166,5 @@ async function getGithubToken(gitCode) {
160166
// save logged user in local storage
161167
setStorage('loggedUser', loggedUser);
162168

163-
164-
// render sidebar
165-
renderSidebarHTML();
166-
167169
}
168170

0 commit comments

Comments
 (0)