From 64bb6259c732908e82c6c618f3dcd9d5e6217ed2 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Fri, 10 Aug 2018 10:35:29 +0200 Subject: [PATCH] Revert "Update iframe-script.js" This reverts commit 1426bc26344d206e2da388e49ee92419df3e153b. --- source/sites/embauche.gouv.fr/iframe-script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/sites/embauche.gouv.fr/iframe-script.js b/source/sites/embauche.gouv.fr/iframe-script.js index c3afd789b..6904cd1cd 100644 --- a/source/sites/embauche.gouv.fr/iframe-script.js +++ b/source/sites/embauche.gouv.fr/iframe-script.js @@ -2,7 +2,7 @@ // Get the "couleur" parameter passed to this script let script = document.getElementById('script-simulateur-embauche'), couleur = script.dataset.couleur, - baseUrl = 'https://embauche.beta.gouv.fr/', + 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}`