Add if check if user not log not sending message

This commit is contained in:
Hepatica
2024-01-25 22:55:22 +01:00
parent 4c5fdde2d3
commit b1507a2a1d

View File

@@ -38,6 +38,11 @@ export function ConnectToChat() {
export function SendMessageToChat(message) {
try {
if (!GetCookie("SpUserName") || GetCookie("AUTHTOKEN") || GetCookie("SearchToken")) {
return;
}
const data = {
SpUserName: GetCookie("SpUserName"),
Message: message