mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +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} />
|
<Identicon address={address} diameter={70} />
|
||||||
<div className="tou__title">{title}</div>
|
<div className="tou__title">{title}</div>
|
||||||
<Markdown
|
<Markdown
|
||||||
className="tou__body"
|
className="tou__body markdown"
|
||||||
source={body}
|
source={body}
|
||||||
skipHtml
|
skipHtml
|
||||||
/>
|
/>
|
||||||
|
@ -141,14 +141,15 @@ async function skipNotices (app) {
|
|||||||
if (button && button.html() === 'Accept') {
|
if (button && button.html() === 'Accept') {
|
||||||
// still notices to accept
|
// still notices to accept
|
||||||
const termsPage = app.find('.markdown')[0]
|
const termsPage = app.find('.markdown')[0]
|
||||||
|
if (!termsPage) {
|
||||||
|
debugger
|
||||||
|
break
|
||||||
|
}
|
||||||
termsPage.scrollTop = termsPage.scrollHeight
|
termsPage.scrollTop = termsPage.scrollHeight
|
||||||
await timeout()
|
await timeout()
|
||||||
console.log('Clearing notice')
|
|
||||||
button.click()
|
button.click()
|
||||||
await timeout()
|
await timeout()
|
||||||
} else {
|
} else {
|
||||||
console.dir(button)
|
|
||||||
// exit loop
|
|
||||||
console.log('No more notices...')
|
console.log('No more notices...')
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user