File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 385385 modal . style . display = "block" ;
386386 } ) ;
387387
388+ { % if let Some ( client_id ) = oauth_client_id % }
388389 rollupContinueButton . addEventListener ( "click" , ( ) => {
389390 const scopes = [ "public_repo" , "workflow" ] ;
390391
@@ -404,12 +405,13 @@ <h1>
404405 } ) ;
405406
406407 const oauthUrl = new URL ( "https://github.com/login/oauth/authorize" ) ;
407- oauthUrl . searchParams . set ( "client_id" , "{{ oauth_client_id.as_ref().unwrap() }}" ) ;
408+ oauthUrl . searchParams . set ( "client_id" , "{{ client_id }}" ) ;
408409 oauthUrl . searchParams . set ( "scope" , scopes . join ( "," ) ) ;
409410 oauthUrl . searchParams . set ( "state" , state ) ;
410411
411412 window . location . href = oauthUrl . toString ( ) ;
412413 } ) ;
414+ { % endif % }
413415
414416 function formatElapsedTime ( ms ) {
415417 const totalSeconds = Math . floor ( ms / 1000 ) ;
You can’t perform that action at this time.
0 commit comments