File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
apps/remix-ide/src/app/pages Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,10 @@ export const GitHubPopupCallback = () => {
24
24
const hasRun = useRef ( false )
25
25
26
26
const exchangeToken = async ( ) => {
27
-
27
+
28
28
const code = extractCode ( )
29
29
window . history . replaceState ( { } , document . title , window . location . pathname )
30
30
31
-
32
31
if ( ! code ) {
33
32
console . warn ( '[GitHubPopupCallback] Missing code' , { code } )
34
33
window . opener ?. postMessage ( { type : 'GITHUB_AUTH_FAILURE' , error : 'missing code' } , window . location . origin )
@@ -46,7 +45,6 @@ export const GitHubPopupCallback = () => {
46
45
}
47
46
} )
48
47
49
-
50
48
if ( data . access_token ) {
51
49
window . opener ?. postMessage ( { type : 'GITHUB_AUTH_SUCCESS' , token : data . access_token } , window . location . origin )
52
50
} else {
You can’t perform that action at this time.
0 commit comments