testando ui otimista
This commit is contained in:
1 parent
ed87c55571
commit
b5c0e70940
1 file changed
+1
-1
@@ -71,7 +71,7 @@ export function debouncedSyncPatternState() {
|
|||||||
const patternState = appState.pattern;
|
const patternState = appState.pattern;
|
||||||
|
|
||||||
// Faz o upload silencioso do JSON
|
// Faz o upload silencioso do JSON
|
||||||
await fetch("/api/save_room_state", {
|
await fetch(`https://alice.ufsj.edu.br:${PORT_SOCK}/api/save_room_state`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
body: JSON.stringify({ roomName: currentRoom, patternState }),
|
body: JSON.stringify({ roomName: currentRoom, patternState }),
|
||||||
|
|||||||
Reference in new issue
Block a user