mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 10:46:32 +00:00
Change to use const instead of let
This commit is contained in:
@@ -167,11 +167,11 @@ 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)
|
||||||
|
|
||||||
copyImage(imagePath, this.props.storageKey).then((imagePathInTheStorage) => {
|
copyImage(imagePath, this.props.storageKey).then((imagePathInTheStorage) => {
|
||||||
let imageMd = ``
|
const imageMd = ``
|
||||||
this.insertImageMd(imageMd)
|
this.insertImageMd(imageMd)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user