Change console output in App.js on global change
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
def582f350
commit
a853a7b647
@ -156,13 +156,17 @@ const Table = () => {
|
|||||||
const resetConnection = cbResetConnection();
|
const resetConnection = cbResetConnection();
|
||||||
|
|
||||||
if (global.ws !== connection
|
if (global.ws !== connection
|
||||||
|| global.name !== name
|
|| global.name !== name
|
||||||
|| global.gameId !== gameId) {
|
|| global.gameId !== gameId) {
|
||||||
console.log(`board - (app) - setting global`, global,
|
console.log(`board - (app) - setting global`, global, {
|
||||||
{connection, name, gameId});
|
ws: connection,
|
||||||
|
name,
|
||||||
|
gameId
|
||||||
|
});
|
||||||
setGlobal({
|
setGlobal({
|
||||||
ws: connection,
|
ws: connection,
|
||||||
name, gameId
|
name,
|
||||||
|
gameId
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user