]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/image-picker.js
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / js / components / image-picker.js
index 03d9567d22e331c82a04c75bc1840e207c5d1eec..d25e01dd7b722835718ea54b310ba219c272f5ce 100644 (file)
@@ -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
+}