bugfix for web gui

This commit is contained in:
OttoMao
2015-11-19 14:03:40 +08:00
parent f749880ec7
commit 225edd2317
3 changed files with 8 additions and 2 deletions

View File

@@ -152,11 +152,13 @@ function Recorder(option){
}
result.type = "text";
result.content = bodyContent.toString();
}else if(imageMatch){
}else if(imageMatch && /image/i.test(imageMatch)){
result.type = "image";
result.mime = imageMatch;
result.content = bodyContent;
}else{
result.content = bodyContent.toString();
}
}catch(e){}