We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 409c449 commit 332722eCopy full SHA for 332722e
kubernetes/keycloak/theme-provider/themes/hmda/login/resources/js/register.js
@@ -103,10 +103,19 @@
103
104
}
105
106
+ // ProdBeta will use Prod data,
107
+ // other systems will use data from their host.
108
+ function deriveInstitutionsApiHost() {
109
+ if (window.location.host == 'ffiec.beta.cfpb.gov')
110
+ return 'https://ffiec.cfpb.gov'
111
+
112
+ return ''
113
+ }
114
115
//AJAX call to get data, calls buildList with returned institutions
116
function getInstitutions(domain) {
117
$.ajax({
- url: '/v2/public/institutions',
118
+ url: deriveInstitutionsApiHost() + '/v2/public/institutions',
119
statusCode: {
120
404: function() {
121
$('#institutions')
0 commit comments