mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
fix lint error
This commit is contained in:
@@ -807,7 +807,7 @@ export default class MarkdownPreview extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleResize () {
|
handleResize () {
|
||||||
_.forEach(
|
_.forEach(
|
||||||
this.refs.root.contentWindow.document.querySelectorAll('svg[ratio]'),
|
this.refs.root.contentWindow.document.querySelectorAll('svg[ratio]'),
|
||||||
el => {
|
el => {
|
||||||
el.setAttribute('height', el.clientWidth / el.getAttribute('ratio'))
|
el.setAttribute('height', el.clientWidth / el.getAttribute('ratio'))
|
||||||
|
|||||||
Reference in New Issue
Block a user