Skip to content

Commit

Permalink
Update web_src/js/features/comp/Cropper.ts
Browse files Browse the repository at this point in the history
Co-authored-by: silverwind <[email protected]>
  • Loading branch information
kerwin612 and silverwind authored Nov 27, 2024
1 parent 08d4c92 commit 4fc5a8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web_src/js/features/comp/Cropper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ type CropperOpts = {

export async function initCompCropper({container, fileInput, imageSource}: CropperOpts) {
const {default: Cropper} = await import(/* webpackChunkName: "cropperjs" */'cropperjs');
let currentFileName = '', currentFileLastModified = 0;
let currentFileName = '';
let currentFileLastModified = 0;
const cropper = new Cropper(imageSource, {
aspectRatio: 1,
viewMode: 2,
Expand Down

0 comments on commit 4fc5a8d

Please sign in to comment.