Hiding iframe in prod

This commit is contained in:
David Négrier 2021-03-28 17:21:10 +02:00
parent 8b90a14c39
commit ee53d8f0b8

View File

@ -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');