From d4fd85f75cef82b67e4b6521b3099a44c368c06d Mon Sep 17 00:00:00 2001 From: Azareal Date: Sun, 26 Jul 2020 15:14:08 +1000 Subject: [PATCH] fix attachment uploading --- public/global.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/global.js b/public/global.js index 12b32fc8..4dac62ed 100644 --- a/public/global.js +++ b/public/global.js @@ -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(); }