Skip to content

Commit

Permalink
Take workspaces in account
Browse files Browse the repository at this point in the history
  • Loading branch information
djangoliv authored and djangoliv committed Sep 20, 2018
1 parent 03b503f commit 50d4e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class HtmlViewer extends Widget {
if (!cm) {
return;
}
let url = this.node.baseURI.replace("/lab", "/files/") + this.context.path;
let url = this.node.baseURI.replace(/\/lab.*/, "/files/") + this.context.path;
this._html.setAttribute('src', url);
}

Expand Down

0 comments on commit 50d4e5b

Please sign in to comment.