Skip to content

Commit 55e06c1

Browse files
kerwin612delvh
andauthored
Update web_src/js/features/user-settings.ts
Co-authored-by: delvh <dev.lh@web.de>
1 parent 82d0e9d commit 55e06c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/user-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {hideElem, showElem} from '../utils/dom.ts';
22
import {initCompCropper} from './comp/Cropper.ts';
33

44
function initUserSettingsAvatarCropper() {
5-
const fileInput = document.querySelector<HTMLInputElement>('#new-avatar');
5+
const fileInput = document.getElementById<HTMLInputElement>('new-avatar');
66
const container = document.querySelector<HTMLElement>('.user.settings.profile .cropper-panel');
77
const imageSource = container.querySelector<HTMLImageElement>('.cropper-source');
88
initCompCropper({container, fileInput, imageSource});

0 commit comments

Comments
 (0)