render() { let {scope} = this.data; if (scope instanceof FetchResult) { this.$el.html( scope.isPending() ? Placeholder(this.data) : Error(scope.getResult()) ); return this; } this.$el.html(Template(this.data)); this.$el .find('[data-action="markdown"]') .html(Markdown.render(this.data.scope.description)); return this; }
.catch(e => puppeteer.show(Error(e), MAIN_VIEW_ID));