From 9a348e3eeb121268a848e0e9e05465508a7c95b4 Mon Sep 17 00:00:00 2001 From: realies Date: Thu, 5 Oct 2017 20:12:26 +0300 Subject: [PATCH] indexOf to charAt --- client/js/lounge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index 128e2ca0..df49e132 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -184,7 +184,7 @@ $(function() { input.val(""); resetInputHeight(input.get(0)); - if (text.indexOf("/") === 0) { + if (text.charAt(0) === "/") { const args = text.substr(1).split(" "); const cmd = args.shift().toLowerCase(); if (typeof utils.inputCommands[cmd] === "function" && utils.inputCommands[cmd](args)) {