ajoute un lien static pour la PR de migration afin de tester plus extensivement les scripts

pull/520/head
Johan Girod 2019-04-30 16:22:14 +02:00
parent 5f0cf65a66
commit e5997bf704
No known key found for this signature in database
GPG Key ID: 9E27B57DA2E8AE12
2 changed files with 8 additions and 3 deletions

View File

@ -148,6 +148,11 @@ status = 200
FR_SITE = "https://mon-entreprise.fr${path}"
MASTER = 'true'
[context."demo"]
[context."demo".environment]
EN_SITE = "https://demo.mon-entreprise.fr${path}?s=m"
FR_SITE = "https://demo.mon-entreprise.fr${path}"
# TEMP Just for testing the iframe when migrating from embauche to mon-entreprise
[context."migration-embauche".environment]
EN_SITE = "https://deploy-preview-520--syso.netlify.com${path}?s=m"
FR_SITE = "https://deploy-preview-520--syso.netlify.com${path}"

View File

@ -10,8 +10,8 @@ let script = document.getElementById('script-simulateur-embauche'),
),
integratorUrl = encodeURIComponent(window.location.href.toString()),
src =
baseUrl +
`?s=e&couleur=${couleur}&iframe&integratorUrl=${integratorUrl}&lang=${lang}`
baseUrl + (baseUrl.indexOf('?') !== -1 ? '&' : '?') +
`couleur=${couleur}&iframe&integratorUrl=${integratorUrl}&lang=${lang}`
const iframe = document.createElement('iframe')
const iframeAttributes = {