Skip to content

Commit

Permalink
Workaround Chromium issue with iframe reload/href (#10185)
Browse files Browse the repository at this point in the history
* Workaround Chromium issue with iframe reload/href

* Try to remove iframe reload altogether
  • Loading branch information
krassowski committed May 10, 2021
1 parent 16cba94 commit dc67269
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/outputarea/src/widget.ts
Expand Up @@ -1043,12 +1043,7 @@ namespace Private {
* of the widget to update it if and when new data is available.
*/
renderModel(model: IRenderMime.IMimeModel): Promise<void> {
return this._wrapped.renderModel(model).then(() => {
const win = (this.node as HTMLIFrameElement).contentWindow;
if (win) {
win.location.reload();
}
});
return this._wrapped.renderModel(model);
}

private _wrapped: IRenderMime.IRenderer;
Expand Down

0 comments on commit dc67269

Please sign in to comment.