mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
update
This commit is contained in:
@@ -19,7 +19,7 @@ export function ConnectToChat() {
|
||||
const dataObject = JSON.parse(event.data);
|
||||
|
||||
if (dataObject && Object.prototype.hasOwnProperty.call(dataObject, 'SpUserName') && Object.prototype.hasOwnProperty.call(dataObject, 'Message')) {
|
||||
eventBus.emit('dataChat', dataObject);
|
||||
eventBus.emit('dataChat', event.data);
|
||||
}
|
||||
|
||||
console.log('Message from Server:', event.data);
|
||||
|
||||
@@ -71,6 +71,7 @@ export default {
|
||||
eventBus.on("dataChat", (dataFromServer) => {
|
||||
try {
|
||||
const dataObject = JSON.parse(dataFromServer);
|
||||
|
||||
let imageUrl =
|
||||
"https://avatar.spworlds.ru/face/55/" + dataObject.SpUserName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user