summaryrefslogtreecommitdiff
path: root/static/js/pichat.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/pichat.js')
-rwxr-xr-xstatic/js/pichat.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js
index 92d24a1..071e8e6 100755
--- a/static/js/pichat.js
+++ b/static/js/pichat.js
@@ -303,8 +303,8 @@ function favoriteImage() {};
function setupUpload(elementId, roomKey) {
var onSubmit = function(file, ext) {
- if (!(ext && /^(jpg|png|jpeg|gif)$/i.test(ext))) {
- alert('Error: invalid file extension ' + ext);
+ if (!(ext && /^(jpg|png|jpeg|gif|bmp)$/i.test(ext))) {
+ alert('SORRY, NOT AN IMAGE DUDE... ');
return false;
}
};