Commit cb80393 1 parent c5094b5 commit cb80393 Copy full SHA for cb80393
File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ $( document ).ready(function() {
18
18
// If found, pass the temp token to gatekeeper
19
19
if ( match ) {
20
20
var code = match [ 1 ] ;
21
- $ . getJSON ( 'http://auth.design.ros2.org/authenticate/' + code , function ( data ) {
21
+ // var gatekeeper_domain = 'desolate-shelf-7303.herokuapp.com'; // for local testing
22
+ var gatekeeper_domain = 'auth.design.ros2.org' ;
23
+ $ . getJSON ( 'http://' + gatekeeper_domain + '/authenticate/' + code , function ( data ) {
22
24
// Once gatekeeper gets back, check for the token
23
25
if ( ! data . token ) {
24
26
// If the token is not set, then display an error
Original file line number Diff line number Diff line change @@ -86,7 +86,10 @@ $( document ).ready(function() {
86
86
' <h3 class="panel-title">Error</h3>' ,
87
87
' </div>' ,
88
88
' <div class="panel-body">' ,
89
- ' Error retrieving Github Info: ' + err ,
89
+ ' Error retrieving Github Info: <br/>' ,
90
+ ' [' + err . request . status + '] ' +
91
+ err . request . statusText + '<br/>' ,
92
+ ' ' + err . request . response ,
90
93
' </div>' ,
91
94
'</div>' ] . join ( '\n' ) ) ;
92
95
} else {
@@ -159,7 +162,7 @@ $( document ).ready(function() {
159
162
// Define function for handling a single issue
160
163
var check_issue = function ( prs_in , index ) {
161
164
// If index >= the length of the issues originally given, exit
162
- if ( index >= prs_in . length ) {
165
+ if ( ! prs_in || index >= prs_in . length ) {
163
166
return ;
164
167
}
165
168
// Else grab the current issue
You can’t perform that action at this time.
0 commit comments