We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57aecec commit 7f49bb9Copy full SHA for 7f49bb9
web_src/js/features/user-settings.ts
@@ -2,7 +2,7 @@ import {hideElem, showElem} from '../utils/dom.ts';
2
import {initCompCropper} from './comp/Cropper.ts';
3
4
function initUserSettingsAvatarCropper() {
5
- const fileInput = document.getElementById<HTMLInputElement>('new-avatar');
+ const fileInput = document.querySelector<HTMLInputElement>('#new-avatar');
6
const container = document.querySelector<HTMLElement>('.user.settings.profile .cropper-panel');
7
const imageSource = container.querySelector<HTMLImageElement>('.cropper-source');
8
initCompCropper({container, fileInput, imageSource});
0 commit comments