hide iframe before first meta event
This commit is contained in:
@@ -296,6 +296,8 @@ export class Replayer {
|
|||||||
if (this.config.UNSAFE_replayCanvas) {
|
if (this.config.UNSAFE_replayCanvas) {
|
||||||
attributes.push('allow-scripts');
|
attributes.push('allow-scripts');
|
||||||
}
|
}
|
||||||
|
// hide iframe before first meta event
|
||||||
|
this.iframe.style.display = 'none';
|
||||||
this.iframe.setAttribute('sandbox', attributes.join(' '));
|
this.iframe.setAttribute('sandbox', attributes.join(' '));
|
||||||
this.disableInteract();
|
this.disableInteract();
|
||||||
this.wrapper.appendChild(this.iframe);
|
this.wrapper.appendChild(this.iframe);
|
||||||
@@ -308,6 +310,7 @@ export class Replayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private handleResize(dimension: viewportResizeDimention) {
|
private handleResize(dimension: viewportResizeDimention) {
|
||||||
|
this.iframe.style.display = 'inherit';
|
||||||
this.iframe.setAttribute('width', String(dimension.width));
|
this.iframe.setAttribute('width', String(dimension.width));
|
||||||
this.iframe.setAttribute('height', String(dimension.height));
|
this.iframe.setAttribute('height', String(dimension.height));
|
||||||
}
|
}
|
||||||
|
|||||||
1
typings/replay/smoothscroll.d.ts
vendored
Normal file
1
typings/replay/smoothscroll.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export declare function polyfill(w?: Window, d?: Document): void;
|
||||||
Reference in New Issue
Block a user