Skip to content

Commit 0cf6011

Browse files
authored
Update gitauth.js
1 parent 5938a43 commit 0cf6011

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

git/gitauth.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,16 @@ window.onload = async () => {
6363

6464

6565
loginButton.addEventListener('click', () => {
66-
67-
window.open('https://github.com/login/oauth/authorize?client_id=7ede3eed3185e59c042d&scope=repo,user,write:org', 'Login with Github', 'height=575,width=575');
66+
67+
if (isMobile) {
68+
69+
window.location.href = 'https://github.com/login/oauth/authorize?client_id=7ede3eed3185e59c042d&scope=repo,user,write:org';
70+
71+
} else {
72+
73+
window.open('https://github.com/login/oauth/authorize?client_id=7ede3eed3185e59c042d&scope=repo,user,write:org', 'Login with Github', 'height=575,width=575');
74+
75+
}
6876

6977
})
7078

0 commit comments

Comments
 (0)