added async to medium script

pull/620/head
LianaHus 4 years ago committed by Liana Husikyan
parent 47bce2018a
commit bdab764a34
  1. 7
      apps/remix-ide/src/app/ui/landing-page/landing-page.js

@ -159,8 +159,9 @@ export class LandingPage extends ViewPlugin {
data-poststyle="external"
data-readmore="More..."
data-buttonclass="btn mb-3"
data-offset="-100">
</div>
data-offset="-100"
>
- </div>
</div>
</div>
`
@ -329,7 +330,7 @@ export class LandingPage extends ViewPlugin {
const img = yo`<img class=${css.logoImg} src="assets/img/guitarRemiCroped.webp" onclick="${() => playRemi()}"></img>`
const playRemi = async () => { await document.getElementById('remiAudio').play() }
// to retrieve medium posts
document.body.appendChild(yo`<script src="https://www.retainable.io/assets/retainable/rss-embed/retainable-rss-embed.js"></script>`)
document.body.appendChild(yo`<script async src="https://www.retainable.io/assets/retainable/rss-embed/retainable-rss-embed.js"></script>`)
const container = yo`
<div class="${css.homeContainer} d-flex" data-id="landingPageHomeContainer">
<div class="${css.mainContent} bg-light">

Loading…
Cancel
Save