X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/9135a85de4eef32a91c7a3ee0aa405ed454e5a4c..refs/pull/5280/head:/resources/js/components/image-picker.js diff --git a/resources/js/components/image-picker.js b/resources/js/components/image-picker.js index 03d9567d2..d25e01dd7 100644 --- a/resources/js/components/image-picker.js +++ b/resources/js/components/image-picker.js @@ -1,4 +1,4 @@ -import {Component} from "./component"; +import {Component} from './component'; export class ImagePicker extends Component { @@ -31,7 +31,7 @@ export class ImagePicker extends Component { this.removeInput.setAttribute('disabled', 'disabled'); } - for (let file of this.imageInput.files) { + for (const file of this.imageInput.files) { this.imageElem.src = window.URL.createObjectURL(file); } this.imageElem.classList.remove('none'); @@ -54,4 +54,4 @@ export class ImagePicker extends Component { this.resetInput.setAttribute('disabled', 'disabled'); } -} \ No newline at end of file +}