diff --git a/front/src/Api/IframeListener.ts b/front/src/Api/IframeListener.ts index 85ee612d..c875ebbb 100644 --- a/front/src/Api/IframeListener.ts +++ b/front/src/Api/IframeListener.ts @@ -144,6 +144,7 @@ class IframeListener { // production code const iframe = document.createElement('iframe'); iframe.id = this.getIFrameId(scriptUrl); + iframe.style.display = 'none'; // We are putting a sandbox on this script because it will run in the same domain as the main website. iframe.sandbox.add('allow-scripts');