fix attachment uploading

This commit is contained in:
Azareal 2020-07-26 15:14:08 +10:00
parent ed64b8f29b
commit d4fd85f75c

View File

@ -366,7 +366,7 @@ function runWebSockets(resume=false) {
// TODO: Surely, there's a prettier and more elegant way of doing this?
function getExt(name) {
if(!name.indexOf('.') > -1) throw("This file doesn't have an extension");
if(!(name.indexOf('.') > -1)) throw("This file doesn't have an extension");
return name.split('.').pop();
}