mirror of https://github.com/PiyushXCoder/lupt.git
minor fix
This commit is contained in:
parent
5b205c8c0c
commit
6ae223be2a
|
|
@ -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');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue