fixing up the dialog class with other bug fixes
This commit is contained in:
@@ -1192,7 +1192,7 @@ class Localuser{
|
||||
json.icon ? ["img", this.info.cdn+"/app-icons/" + appId + "/" + json.icon + ".png?size=128", [128, 128]] : ["text", "No icon"],
|
||||
["fileupload", "Application icon:", event=>{
|
||||
const reader=new FileReader();
|
||||
reader.readAsDataURL(event.target.files[0]);
|
||||
reader.readAsDataURL((event.target as HTMLInputElement).files[0]);
|
||||
reader.onload=()=>{
|
||||
fields.icon=reader.result;
|
||||
};
|
||||
@@ -1280,7 +1280,7 @@ class Localuser{
|
||||
fields.avatar ? ["img", fields.avatar, [128, 128]] : ["text", "No avatar"],
|
||||
["fileupload", "Bot avatar:", event=>{
|
||||
const reader=new FileReader();
|
||||
reader.readAsDataURL(event.target.files[0]);
|
||||
reader.readAsDataURL((event.target as HTMLInputElement).files[0]);
|
||||
reader.onload=()=>{
|
||||
fields.avatar=reader.result;
|
||||
};
|
||||
|
Reference in New Issue
Block a user