Skip to content

Commit

Permalink
fix(codegen): do not show recorder controls in iframes (#5282)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgozman committed Feb 3, 2021
1 parent 080a952 commit fa1cf41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/supplements/injected/recorder.ts
Expand Up @@ -198,7 +198,8 @@ export class Recorder {
}, true),
];
document.documentElement.appendChild(this._outerGlassPaneElement);
document.documentElement.appendChild(this._outerToolbarElement);
if (window.top === window)
document.documentElement.appendChild(this._outerToolbarElement);
}

private _toggleRecording() {
Expand Down

0 comments on commit fa1cf41

Please sign in to comment.