This reverts commit 823fdcdd97
.
This commit is contained in:
parent
823fdcdd97
commit
11c8024c2a
1 changed files with 0 additions and 14 deletions
|
@ -332,20 +332,6 @@ function App(props: Props) {
|
||||||
|
|
||||||
// add secure privacy script
|
// add secure privacy script
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// check if loaded from iframe
|
|
||||||
function inIframe() {
|
|
||||||
try {
|
|
||||||
return window.self !== window.top;
|
|
||||||
} catch (e) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const loadedFromIframe = inIframe();
|
|
||||||
if (loadedFromIframe) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const script = document.createElement('script');
|
const script = document.createElement('script');
|
||||||
script.src = securePrivacyScriptUrl;
|
script.src = securePrivacyScriptUrl;
|
||||||
script.async = true;
|
script.async = true;
|
||||||
|
|
Loading…
Reference in a new issue