fix: sync password

This commit is contained in:
Artemy 2023-04-05 14:34:52 +03:00
parent 6af0bfacb2
commit 59c3a41e4e

View file

@ -71,7 +71,7 @@ function Settings() {
label={locals.BroadcastSync} label={locals.BroadcastSync}
onChange={(e) => { onChange={(e) => {
if (e.target.checked) { if (e.target.checked) {
socket.emit("joinRoom", settings.syncPassword); socket.emit("joinRoom", settings.SyncPassword);
} else { } else {
socket.emit("leaveRoom"); socket.emit("leaveRoom");
} }
@ -98,7 +98,7 @@ function Settings() {
NoteText: localStorage.getItem("NoteText"), NoteText: localStorage.getItem("NoteText"),
NoteName: localStorage.getItem("NoteName"), NoteName: localStorage.getItem("NoteName"),
}, },
room: settings.syncPassword, room: settings.SyncPassword,
}); });
}} }}
/> />