From 610c2b3ec4648c1aac0064be8a3813c16a357606 Mon Sep 17 00:00:00 2001 From: Eoghan Murray Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] This dimension is in px but is unitless according to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe (#214) --- src/replay/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/replay/index.ts b/src/replay/index.ts index aa780700..df2ee8fe 100644 --- a/src/replay/index.ts +++ b/src/replay/index.ts @@ -226,8 +226,8 @@ export class Replayer { } private handleResize(dimension: viewportResizeDimention) { - this.iframe.width = `${dimension.width}px`; - this.iframe.height = `${dimension.height}px`; + this.iframe.setAttribute('width', dimension.width); + this.iframe.setAttribute('height', dimension.height); } // TODO: add speed to mouse move timestamp calculation