fix(codegen): do not show recorder controls in iframes (#5282)

This commit is contained in:
Dmitry Gozman 2021-02-03 13:42:29 -08:00 committed by GitHub
parent 080a9529b3
commit fa1cf4108b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,8 @@ export class Recorder {
}, true), }, true),
]; ];
document.documentElement.appendChild(this._outerGlassPaneElement); document.documentElement.appendChild(this._outerGlassPaneElement);
document.documentElement.appendChild(this._outerToolbarElement); if (window.top === window)
document.documentElement.appendChild(this._outerToolbarElement);
} }
private _toggleRecording() { private _toggleRecording() {