1
0
Fork 0
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:
Luke Pulverenti 2013-04-17 12:45:37 -04:00
parent 11efc3c8ab
commit 2e4becdaa4
4 changed files with 16 additions and 8 deletions

View file

@ -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;
}