diff --git a/app/views/home/_script_to_load.html.erb b/app/views/home/_script_to_load.html.erb index 0f12129..51f2efe 100644 --- a/app/views/home/_script_to_load.html.erb +++ b/app/views/home/_script_to_load.html.erb @@ -65,7 +65,7 @@ // so if msg ends with .gif then in addition (or instead of) the pre tag it is wrapped // in an img tag with msg as the src chatroom.display_msg = function(sender, msg, time) { - if (msg.indexOf('.gif') != -1 ) { + if (msg.indexOf('.gif') != -1 || msg.indexOf('.jpg') != -1) { $('