From 3e8ccdf610b724acdc9d37c3c1dfe6591fb153e9 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 19 Feb 2019 14:43:48 -0500 Subject: [PATCH] simplify support tab render --- src/app/tabs/support-tab.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/app/tabs/support-tab.js b/src/app/tabs/support-tab.js index 9b751e66a9..b168af1258 100644 --- a/src/app/tabs/support-tab.js +++ b/src/app/tabs/support-tab.js @@ -37,6 +37,7 @@ class SupportTab extends ApiFactory { this.gitterIframe = yo`
` + generateRemixdUI () { const remixd = yo`
Accessing local files
@@ -49,7 +50,10 @@ class SupportTab extends ApiFactory {
Installation:
npm install remixd -g
` + return remixd + } + generateLocalRemixdUI () { const localremixd = yo`
Running Remix locally
@@ -63,6 +67,13 @@ class SupportTab extends ApiFactory {
https://github.com/horizon-games/remix-app ` + return localremixd + } + + render () { + if (this.el) return this.el + + this.gitterIframe = yo`
` this.el = yo`
@@ -78,8 +89,8 @@ class SupportTab extends ApiFactory {
${this.gitterIframe} - ${remixd} - ${localremixd} + ${this.generateRemixdUI()} + ${this.generateLocalRemixdUI()} ` return this.el