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