Skip to content

Commit

Permalink
Backport PR jupyterlab#10185: Workaround Chromium issue with iframe r…
Browse files Browse the repository at this point in the history
…eload/href
  • Loading branch information
krassowski authored and meeseeksmachine committed May 10, 2021
1 parent ba7cbb8 commit bc36777
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/outputarea/src/widget.ts
Expand Up @@ -952,12 +952,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 bc36777

Please sign in to comment.