Hiding iframe in prod
This commit is contained in:
parent
8b90a14c39
commit
ee53d8f0b8
1 changed files with 1 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue