mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-07-09 13:27:45 +00:00
refacto: devWeb - unify language used for comments (back)
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
export default class Message {
|
||||
constructor(rawMessage) {
|
||||
// Parse the message
|
||||
const message = JSON.parse(rawMessage);
|
||||
message.data = JSON.parse(message.data);
|
||||
|
||||
console.log(message);
|
||||
|
||||
// Set the message properties
|
||||
this.type = message.type;
|
||||
this.data = message.data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user