mirror of
https://github.com/artegoser/AnoPaper.git
synced 2025-02-23 12:43:14 +03:00
fix: some debug))
This commit is contained in:
parent
59c3a41e4e
commit
6d78613653
3 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,7 @@ function onFooEvent() {
|
|||
}
|
||||
|
||||
function onSync({ settings, Notes, NoteText, NoteName }) {
|
||||
console.log(settings, Notes, NoteText, NoteName);
|
||||
localStorage.setItem("Notes", Notes);
|
||||
localStorage.setItem("NoteText", NoteText);
|
||||
localStorage.setItem("NoteName", NoteName);
|
||||
|
|
|
@ -71,6 +71,7 @@ function Settings() {
|
|||
label={locals.BroadcastSync}
|
||||
onChange={(e) => {
|
||||
if (e.target.checked) {
|
||||
console.log("Broadcasting sync");
|
||||
socket.emit("joinRoom", settings.SyncPassword);
|
||||
} else {
|
||||
socket.emit("leaveRoom");
|
||||
|
|
Loading…
Add table
Reference in a new issue