Add franceconnect prod host in franc_connect kit

This commit is contained in:
Xavier J 2016-02-09 16:38:30 +01:00
parent b3a90376d4
commit be25a309d8

View file

@ -6,12 +6,15 @@ var franceConnectKit = {};
aboutUrl: '' aboutUrl: ''
}; };
franceConnectKit.init = function() { franceConnectKit.init = function () {
//initCurrentHostnameSource(); //initCurrentHostnameSource();
//includeFCCss(); //includeFCCss();
fconnect.currentHost = 'fcp.integ01.dev-franceconnect.fr'; fconnect.currentHost = 'fcp.integ01.dev-franceconnect.fr';
if (window.location.hostname == 'tps.apientreprise.fr')
fconnect.currentHost = 'app.franceconnect.gouv.fr';
var fconnectProfile = document.getElementById('fconnect-profile'); var fconnectProfile = document.getElementById('fconnect-profile');
if (fconnectProfile) { if (fconnectProfile) {
var linkAccess = document.querySelector('#fconnect-profile > a'); var linkAccess = document.querySelector('#fconnect-profile > a');