Skip to content

Commit b0996f6

Browse files
committed
update add word filter and minor fixes
1 parent 85db6c6 commit b0996f6

File tree

6 files changed

+1019
-155
lines changed

6 files changed

+1019
-155
lines changed

chat/chat.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@
102102
<script src="./node_modules/socket.io/client-dist/socket.io.js"></script>
103103
<script src="./index.js"></script>
104104
<script>
105-
// const url = "https://g4o2-api.maxhu787.repl.co";
106-
const url = "http://localhost:3000";
105+
const url = "https://g4o2-api.maxhu787.repl.co";
106+
// const url = "http://localhost:3000";
107107
const socket = io(url);
108108
const messages = document.getElementById('messages');
109109
const form = document.getElementById('message-form');
@@ -158,8 +158,6 @@ function escapeHtml(text) {
158158
data = JSON.parse(body);
159159
let username = data['username']
160160
let userconnect = `<p style=''>User ${username} connected</s>`;
161-
// $("#chatcontent").append(userconnect);
162-
// chatScroll();
163161
});
164162
})
165163

0 commit comments

Comments
 (0)