Skip to content

Commit 6f53474

Browse files
committed
Update gitauth.js
1 parent 818f8da commit 6f53474

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

git/gitauth.js

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

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

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

@@ -135,6 +135,3 @@ async function getGithubToken(gitCode) {
135135

136136
}
137137

138-
139-
loadGitAuth();
140-

0 commit comments

Comments
 (0)