added 'green' display to http on 127.0.0.1 in addition to localhost

pull/1046/head
Justin Richer 9 years ago
parent 37b9acda66
commit 2d2cf57125

@ -72,7 +72,7 @@
var uri = $.url(client.redirectUris[i]); var uri = $.url(client.redirectUris[i]);
if (!uri.attr('protocol')) { if (!uri.attr('protocol')) {
%><b class="text-error" title="unknown protocol scheme">?</b><% %><b class="text-error" title="unknown protocol scheme">?</b><%
} else if (uri.attr('protocol') == 'http' && uri.attr('host') != 'localhost') { } else if (uri.attr('protocol') == 'http' && (uri.attr('host') != 'localhost' && uri.attr('host') != '127.0.0.1')) {
%><b class="text-error"><%- uri.attr('protocol') %></b>://<% %><b class="text-error"><%- uri.attr('protocol') %></b>://<%
} else if (uri.attr('protocol') != 'https' && uri.attr('protocol') != 'http') { } else if (uri.attr('protocol') != 'https' && uri.attr('protocol') != 'http') {
%><span class="text-warning"><%- uri.attr('protocol') %></span>://<% %><span class="text-warning"><%- uri.attr('protocol') %></span>://<%

Loading…
Cancel
Save