You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 22:13:53 +01:00
Not sure which has better code, firmware, or this? This is okay, but toy lang. Firmware was horrible.
This commit is contained in:
@@ -23,10 +23,7 @@ function createChatServer(storage) {
|
||||
storage.chatHistory.forEach((message) => {
|
||||
const historyMessage = { ...message, history: true };
|
||||
|
||||
if (!request.session?.isAdminAuthenticated) {
|
||||
delete historyMessage.ip;
|
||||
}
|
||||
|
||||
if (!request.session?.isAdminAuthenticated) delete historyMessage.ip;
|
||||
ws.send(JSON.stringify(historyMessage));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user