From 662437081064d2addc3cb003855409403d4ec12f Mon Sep 17 00:00:00 2001 From: rstular Date: Fri, 15 May 2020 02:03:18 +0200 Subject: Remove beziapp references from chat Lowers amount of data sent to the server --- js/messaging.js | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'js/messaging.js') diff --git a/js/messaging.js b/js/messaging.js index 56812e4..3355297 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -1,7 +1,7 @@ const API_ENDPOINT = "https://gimb.tk/test.php"; const DIRECTORY_URL = "/directory.json"; -const ENCRYPTED_MESSAGE_REGEX = /(\S+?)/g; +const ENCRYPTED_MESSAGE_REGEX = /(\S+?)/g; // "Global" object for name directory and messages var directory = null; @@ -263,25 +263,25 @@ function displayMessage(id, data) { var randomencdivid = Math.floor(Math.random() * 9999).toString().padStart(4, "0"); var msgcontent = ` -
+
${D("thisMessageWasEncrypted")} - +
-