fix yo template

pull/3094/head
yann300 6 years ago
parent cc2895149d
commit 42bc714cf5
  1. 2
      src/app/tabs/support-tab.js
  2. 2
      src/app/ui/renderer.js

@ -12,7 +12,7 @@ class SupportTab {
__showing () {
if (this.gitterIsLoaded) return
const iframe = yo`<iframe class="${css.chatIframe}" src='https://gitter.im/ethereum/remix/~embed'>`
const iframe = yo`<iframe class="${css.chatIframe}" src='https://gitter.im/ethereum/remix/~embed'></iframe>`
this.gitterIframe.parentNode.replaceChild(iframe, this.gitterIframe)
this.gitterIframe = iframe
this.el.style.display = 'block'

@ -87,7 +87,7 @@ Renderer.prototype.error = function (message, container, opt) {
})
}
var $pre = $(opt.useSpan ? yo`<span />` : yo`<pre />`).html(message)
var $pre = $(opt.useSpan ? yo`<span></span>` : yo`<pre></pre>`).html(message)
var $error = $(yo`<div class="sol ${opt.type}"><div class="close"><i class="fa fa-close"></i></div></div>`).prepend($pre)
$(container).append($error)

Loading…
Cancel
Save