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,6 +198,7 @@ export class Recorder {
}, true),
];
document.documentElement.appendChild(this._outerGlassPaneElement);
if (window.top === window)
document.documentElement.appendChild(this._outerToolbarElement);
}