Add markdown class to mascara ui markdown field

This commit is contained in:
Dan Finlay 2017-11-29 13:34:19 -08:00
parent 9ca6f93eca
commit adc66974ff
2 changed files with 5 additions and 4 deletions

View File

@ -64,7 +64,7 @@ class NoticeScreen extends Component {
<Identicon address={address} diameter={70} />
<div className="tou__title">{title}</div>
<Markdown
className="tou__body"
className="tou__body markdown"
source={body}
skipHtml
/>

View File

@ -141,14 +141,15 @@ async function skipNotices (app) {
if (button && button.html() === 'Accept') {
// still notices to accept
const termsPage = app.find('.markdown')[0]
if (!termsPage) {
debugger
break
}
termsPage.scrollTop = termsPage.scrollHeight
await timeout()
console.log('Clearing notice')
button.click()
await timeout()
} else {
console.dir(button)
// exit loop
console.log('No more notices...')
break
}