Skip to content

Commit 818f8da

Browse files
committed
Update gitauth.js
1 parent 1155e50 commit 818f8da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

git/gitauth.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// git login
66
const clientId = '7ede3eed3185e59c042d';
77

8-
window.onload = async () => {
8+
async function loadGitAuth() {
99

1010
gitToken = getStorage('gitToken') ?? '';
1111

@@ -134,3 +134,7 @@ async function getGithubToken(gitCode) {
134134
renderSidebarHTML();
135135

136136
}
137+
138+
139+
loadGitAuth();
140+

0 commit comments

Comments
 (0)