-import {Component} from "./component";
+import {Component} from './component';
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');
this.resetInput.setAttribute('disabled', 'disabled');
}
-}
\ No newline at end of file
+}