Example #1
0
 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;
 }
Example #2
0
 .catch(e => puppeteer.show(Error(e), MAIN_VIEW_ID));