* Upgrade puppeteer to 17.1.3 in rrweb-snapshot * Apply formatting changes * Add ? * Make tests less flakey * Make attribute-setting more explicit * Make test less flakey * Make test less flakey * Upgrade puppeteer for rrdom * Use wait for request animation frame instead of timeout * Force append to happen in second event * Wait till iframe was loaded (now 100ms) * Round the currentTime to 1 decimal place
17 lines
490 B
HTML
17 lines
490 B
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<body>
|
|
<img src="" alt="This is a robot" />
|
|
</body>
|
|
<script>
|
|
setTimeout(async function () {
|
|
const robotFile = await fetch('/images/robot.png');
|
|
const robotBlob = await robotFile.blob();
|
|
const robotBlobUrl = URL.createObjectURL(robotBlob);
|
|
const images = document.querySelectorAll('img');
|
|
images.forEach((img) => {
|
|
img.setAttribute('src', robotBlobUrl);
|
|
});
|
|
}, 0);
|
|
</script>
|
|
</html>
|