Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
djangoliv authored and djangoliv committed Sep 20, 2018
1 parent 312de0e commit 03b503f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions 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 All @@ -118,14 +118,14 @@ export class HtmlViewer extends Widget {
export class HtmlViewerFactory extends ABCWidgetFactory<
IDocumentWidget<HtmlViewer>
> {
/**
* Create a new widget given a context.
*/
protected createNewWidget(
context: DocumentRegistry.IContext<DocumentRegistry.IModel>
): IDocumentWidget<HtmlViewer> {
const content = new HtmlViewer(context);
const widget = new DocumentWidget({ content, context });
return widget;
}
/**
* Create a new widget given a context.
*/
protected createNewWidget(
context: DocumentRegistry.IContext<DocumentRegistry.IModel>
): IDocumentWidget<HtmlViewer> {
const content = new HtmlViewer(context);
const widget = new DocumentWidget({ content, context });
return widget;
}
}

0 comments on commit 03b503f

Please sign in to comment.