minor fix

This commit is contained in:
Piyush मिश्रः 2021-05-10 22:07:50 +05:30
parent 5b205c8c0c
commit 6ae223be2a
1 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
var Camera = class { let Camera = class {
static setupCamera() { static setupCamera() {
$('#file-input')[0].addEventListener('change', function(e) { $('#file-input')[0].addEventListener('change', function(e) {
const file = e.target.files[0]; const file = e.target.files[0];
if (!file) { if (!file) {
return; return;
} }
this.compressImage(file, 0.1, 'image/webp'); Camera.compressImage(file, 0.1, 'image/webp');
}); });
} }