Skip to content

Instantly share code, notes, and snippets.

@evtuhovdo
Last active June 24, 2020 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evtuhovdo/85fbbfcfca17ad28c2624b8b704b2cbf to your computer and use it in GitHub Desktop.
Save evtuhovdo/85fbbfcfca17ad28c2624b8b704b2cbf to your computer and use it in GitHub Desktop.
logrocket iframe merge video
<html>
<head>
<script src="https://cdn.lr-ingest.io/LogRocket.min.js" crossorigin="anonymous"></script>
<script>window.LogRocket && window.LogRocket.init('2wtrade/2wcall-ui', { mergeIframes: true,});</script>
</head>
<body>
<h1>Этот контент вне фрейма</h1>
<input type="text" >
<iframe src="http://localhost:5000/index2.html">
</iframe>
</body>
</html>
<html>
<head>
<script src="https://cdn.lr-ingest.io/LogRocket.min.js" crossorigin="anonymous"></script>
<script>window.LogRocket && window.LogRocket.init('2wtrade/2wcall-ui', { mergeIframes: true,});</script>
<script>
setInterval(function() {
console.log('some event in iframe')
}, 4000);
</script>
</head>
<body>
<h1>IFRAME! Этот контент внутри фрейма</h1>
<input type="checkbox" >
</body>
</html>
@evtuhovdo
Copy link
Author

В таком примере запись данных внутри iframe прошла успешно.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment