Répare le test de l'integration iframe en prod
parent
dcc4baa336
commit
d56515301e
|
@ -5,7 +5,7 @@ let script = document.getElementById('script-simulateur-embauche'),
|
|||
baseUrl = script.dataset.iframeUrl || script.getAttribute('src').split('dist')[0],
|
||||
integratorUrl = encodeURIComponent(window.location.href.toString()),
|
||||
lang = script.dataset.lang,
|
||||
src = baseUrl + `?couleur=${couleur}&iframe&integratorUrl=${integratorUrl}&lang=${lang}`
|
||||
src = baseUrl + `?site=embauche&couleur=${couleur}&iframe&integratorUrl=${integratorUrl}&lang=${lang}`
|
||||
|
||||
const iframe = document.createElement('iframe')
|
||||
const iframeAttributes = {
|
||||
|
|
|
@ -10,12 +10,7 @@ export default class IntegrationTest extends Component {
|
|||
window.location.origin + '/dist/simulateur.js'
|
||||
script.dataset.couleur = '#2975D1'
|
||||
script.dataset.iframeUrl =
|
||||
window.location.origin +
|
||||
this.props.history.createHref({
|
||||
search: this.props.location.search.includes('site=embauche')
|
||||
? '?site=embauche'
|
||||
: ''
|
||||
})
|
||||
window.location.origin + this.props.history.createHref({})
|
||||
this.DOMNode.appendChild(script)
|
||||
}
|
||||
render() {
|
||||
|
|
Loading…
Reference in New Issue