Skip to content

Commit 65244c2

Browse files
authored
Update gitauth.js
1 parent 99091d2 commit 65244c2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

git/gitauth.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ let githubToken, treeLoc;
99

1010
window.onload = () => {
1111

12-
githubToken = (getStorage('token') == 'undefined') ? false : getStorage('token');
12+
githubToken = getStorage('token');
13+
14+
if (githubToken == 'undefined') {
15+
githubToken = null;
16+
}
17+
1318
treeLoc = getStorage('tree') ? getStorage('tree').split(',') : ['', '', ''];
1419

1520
const url = new URL(window.location.href);

0 commit comments

Comments
 (0)