mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #146 - User creation screen - image selection
This commit is contained in:
parent
11efc3c8ab
commit
2e4becdaa4
4 changed files with 16 additions and 8 deletions
|
@ -146,7 +146,11 @@
|
|||
|
||||
var file = UserImagePage.currentFile;
|
||||
|
||||
if (!file || !file.type.match('image.*')) {
|
||||
if (!file) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (file.type != "image/png" && file.type != "image/jpeg" && file.type != "image/jpeg") {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue