添加分享房间链接和对战结束返回房间
This commit is contained in:
@@ -27,15 +27,14 @@ export const MESSAGETYPES = {
|
||||
Calibration: 4168086625,
|
||||
DeviceOnline: 4168086626,
|
||||
DeviceOffline: 4168086627,
|
||||
SomeoneIsReady: 4168086628,
|
||||
};
|
||||
|
||||
export const topThreeColors = ["#FFD947", "#D2D2D2", "#FFA515"];
|
||||
|
||||
export const getMessageTypeName = (id) => {
|
||||
for (let key in MESSAGETYPES) {
|
||||
if (MESSAGETYPES[key] === id) {
|
||||
return key;
|
||||
}
|
||||
if (MESSAGETYPES[key] === id) return key;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user