mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Add markdown class to mascara ui markdown field
This commit is contained in:
parent
9ca6f93eca
commit
adc66974ff
@ -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
|
||||
/>
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user