mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Change let to const
This commit is contained in:
@@ -166,9 +166,9 @@ export default class CodeEditor extends React.Component {
|
|||||||
|
|
||||||
handleDropImage (e) {
|
handleDropImage (e) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
let imagePath = e.dataTransfer.files[0].path
|
const imagePath = e.dataTransfer.files[0].path
|
||||||
let filename = path.basename(imagePath)
|
const filename = path.basename(imagePath)
|
||||||
let imageMd = `})`
|
const imageMd = `})`
|
||||||
this.insertImage(imageMd)
|
this.insertImage(imageMd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user